File tree Expand file tree Collapse file tree 2 files changed +5
-9
lines changed Expand file tree Collapse file tree 2 files changed +5
-9
lines changed Original file line number Diff line number Diff line change 1- mod a { pub use crate :: b:: foo; } //~ ERROR unresolved import `crate::b`
1+ mod a { pub use crate :: b:: foo; } //~ ERROR unresolved import `crate::b::foo`
2+ mod b { pub use crate :: a:: foo; }
23
34fn main ( ) { println ! ( "loop" ) ; }
Original file line number Diff line number Diff line change 1- error[E0432]: unresolved import `crate::b`
2- --> $DIR/import4.rs:1:24
1+ error[E0432]: unresolved import `crate::b::foo `
2+ --> $DIR/import4.rs:1:17
33 |
44LL | mod a { pub use crate::b::foo; }
5- | ^ use of unresolved module or unlinked crate `b`
6- |
7- help: you might be missing a crate named `b`, add it to your project and import it in your code
8- |
9- LL + extern crate b;
10- |
5+ | ^^^^^^^^^^^^^ no `foo` in `b`
116
127error: aborting due to 1 previous error
138
You can’t perform that action at this time.
0 commit comments