We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
#![crate_name="odd_span"] #![no_std] #[test] fn t(){ }
will result in
test.rs:1:1: 1:4 error: unresolved import `std::slice::AsSlice`. Maybe a missing `extern crate std`? test.rs:1 #![crate_name="odd_span"] ^~~ error: aborting due to previous error
Note the odd span and error location.
Since --test depends on libstd, maybe a following error message would be better?
--test
test.rs:2:1: 1:4 error: Test harness binaries require std crate. Maybe a missing `extern crate std`? test.rs:2 #![no_std] ^~~~~~~~~~ error: aborting due to previous error
The text was updated successfully, but these errors were encountered:
Closing as a dupe of #18843
Sorry, something went wrong.
No branches or pull requests
will result in
Note the odd span and error location.
Since
--test
depends on libstd, maybe a following error message would be better?The text was updated successfully, but these errors were encountered: