Compiling #![no_std] crates with --test gives unhelpful error message #18843
Labels
A-diagnostics
Area: Messages for errors, warnings, and lints
A-frontend
Area: Compiler frontend (errors, parsing and HIR)
test-error.rs:
Compiling:
This isn't very helpful. Changing the file to
instead gives the error message
The error always refers to the first line of the file, so if you have feature gates before
#![no_std]
, the error will refer to them.The text was updated successfully, but these errors were encountered: