1+ error[E0432]: unresolved import `my_cor`
2+ --> $DIR/crate-or-module-typo.rs:31:5
3+ |
4+ LL | use my_cor::mem;
5+ | ^^^^^^ use of undeclared crate or module `my_cor`
6+
7+ error[E0432]: unresolved import `my_core`
8+ --> $DIR/crate-or-module-typo.rs:33:5
9+ |
10+ LL | use my_core::mem;
11+ | ^^^^^^^ use of undeclared crate or module `my_core`
12+
13+ error[E0432]: unresolved import `aa`
14+ --> $DIR/crate-or-module-typo.rs:35:5
15+ |
16+ LL | use aa::bar;
17+ | ^^ use of undeclared crate or module `aa`
18+
119error[E0433]: failed to resolve: use of undeclared crate or module `st`
2- --> $DIR/crate-or-module-typo.rs:3 :5
20+ --> $DIR/crate-or-module-typo.rs:39 :5
321 |
422LL | use st::cell::Cell;
523 | ^^ use of undeclared crate or module `st`
@@ -9,25 +27,51 @@ help: there is a crate or module with a similar name
927LL | use std::cell::Cell;
1028 | ~~~
1129
12- error[E0432]: unresolved import `bas`
13- --> $DIR/crate-or-module-typo.rs:11:5
30+ error[E0432]: unresolved import `bb`
31+ --> $DIR/crate-or-module-typo.rs:37:5
32+ |
33+ LL | use bb::bar;
34+ | ^^ use of undeclared crate or module `bb`
35+ |
36+ help: there is a crate or module with a similar name
37+ |
38+ LL | use b::bar;
39+ | ~
40+
41+ error[E0432]: unresolved import `fooo`
42+ --> $DIR/crate-or-module-typo.rs:41:5
1443 |
15- LL | use bas ::bar;
16- | ^^^ use of undeclared crate or module `bas `
44+ LL | use fooo ::bar;
45+ | ^^^^ use of undeclared crate or module `fooo `
1746 |
1847help: there is a crate or module with a similar name
1948 |
20- LL | use bar ::bar;
49+ LL | use foo ::bar;
2150 | ~~~
2251
23- error[E0433]: failed to resolve: use of undeclared crate or module `bar`
24- --> $DIR/crate-or-module-typo.rs:6:20
52+ error[E0432]: unresolved import `my_cor`
53+ --> $DIR/crate-or-module-typo.rs:7:9
54+ |
55+ LL | use my_cor::mem;
56+ | ^^^^^^ use of undeclared crate or module `my_cor`
57+ ...
58+ LL | a!();
59+ | ----- in this macro invocation
60+ |
61+ = note: this error originates in the macro `a` (in Nightly builds, run with -Z macro-backtrace for more info)
62+ help: there is a crate or module with a similar name
63+ |
64+ LL | use my_core::mem;
65+ | ~~~~~~~
66+
67+ error[E0433]: failed to resolve: use of undeclared crate or module `fooo`
68+ --> $DIR/crate-or-module-typo.rs:22:20
2569 |
26- LL | pub fn bar() { bar ::baz(); }
27- | ^^^ use of undeclared crate or module `bar `
70+ LL | pub fn bar() { fooo ::baz(); }
71+ | ^^^^ use of undeclared crate or module `fooo `
2872
2973error[E0433]: failed to resolve: use of undeclared crate or module `st`
30- --> $DIR/crate-or-module-typo.rs:14 :10
74+ --> $DIR/crate-or-module-typo.rs:44 :10
3175 |
3276LL | bar: st::cell::Cell<bool>
3377 | ^^ use of undeclared crate or module `st`
@@ -37,7 +81,7 @@ help: there is a crate or module with a similar name
3781LL | bar: std::cell::Cell<bool>
3882 | ~~~
3983
40- error: aborting due to 4 previous errors
84+ error: aborting due to 9 previous errors
4185
4286Some errors have detailed explanations: E0432, E0433.
4387For more information about an error, try `rustc --explain E0432`.
0 commit comments