You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
use log4rs;
use not_existing_crate::{ * }; // or use not_existing_crate::*;
fn main() {
println!("Hello, world!");
}
I expected to see only not_existing_crate is reported as "resovled imports".
Instead, this happened:
error[E0432]: unresolved imports `not_existing_crate`, `log4rs`
--> src/main.rs:1:5
|
1 | use log4rs;
| ^^^^^^
2 | use not_existing_crate::{ * };
| ^^^^^^^^^^^^^^^^^^ use of undeclared crate or module `not_existing_crate`
error: aborting due to previous error
For more information about this error, try `rustc --explain E0432`.
error: could not compile `test3`
Add any valid crate as dep:
I tried this code:
I expected to see only
not_existing_crate
is reported as "resovled imports".Instead, this happened:
Meta
rustc --version --verbose
:The same error with rust 1.56.0.
The text was updated successfully, but these errors were encountered: