Skip to content

Commit c607822

Browse files
fix oopsie
1 parent c334245 commit c607822

File tree

2 files changed

+5
-9
lines changed

2 files changed

+5
-9
lines changed

tests/ui/imports/import4.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
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

34
fn main() { println!("loop"); }

tests/ui/imports/import4.stderr

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,8 @@
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
|
44
LL | 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

127
error: aborting due to 1 previous error
138

0 commit comments

Comments
 (0)