fork/rust

git clone https://git.julia.blue/fork/rust

borsAuto merge of #69854 - pietroalbini:stable-next, r=Centrilb8cedc00407

1.42.0
796 B31 linesraw
1error[E0432]: unresolved import `zed::baz`
2  --> $DIR/import.rs:2:5
3   |
4LL | use zed::baz;
5   |     ^^^^^---
6   |     |    |
7   |     |    help: a similar name exists in the module: `bar`
8   |     no `baz` in `zed`
9
10error[E0432]: unresolved import `foo`
11  --> $DIR/import.rs:10:9
12   |
13LL |     use foo;
14   |         ^^^ no `foo` in the root
15
16error[E0603]: unresolved item import `foo` is private
17  --> $DIR/import.rs:15:10
18   |
19LL |     zed::foo();
20   |          ^^^ this unresolved item import is private
21   |
22note: the unresolved item import `foo` is defined here
23  --> $DIR/import.rs:10:9
24   |
25LL |     use foo;
26   |         ^^^
27
28error: aborting due to 3 previous errors
29
30Some errors have detailed explanations: E0432, E0603.
31For more information about an error, try `rustc --explain E0432`.