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
When useing a module name that does not exist, rustc suggest the same name.
You can reproduce it like this:
$ cargo new foo
$ cd foo
$ echo "use bar;" > src/lib.rs
$ cargo build
Compiling foo v0.1.0 (file:///tmp/foo)
src/lib.rs:1:5: 1:8 error: unresolved import `bar`. There is no `bar` in `???`. Did you mean to use `bar`? [E0432]
src/lib.rs:1 use bar;
^~~
src/lib.rs:1:5: 1:8 help: run `rustc --explain E0432` to see a detailed explanation