fork/rust

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

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

1.42.0
638 B24 linesraw
1error[E0432]: unresolved import `bar::foo`
2  --> $DIR/privacy2.rs:17:9
3   |
4LL |     use bar::foo;
5   |         ^^^^^^^^ no `foo` in `bar`
6
7error[E0603]: function import `foo` is private
8  --> $DIR/privacy2.rs:23:20
9   |
10LL |     use bar::glob::foo;
11   |                    ^^^ this function import is private
12   |
13note: the function import `foo` is defined here
14  --> $DIR/privacy2.rs:10:13
15   |
16LL |         use foo;
17   |             ^^^
18
19error: requires `sized` lang_item
20
21error: aborting due to 3 previous errors
22
23Some errors have detailed explanations: E0432, E0603.
24For more information about an error, try `rustc --explain E0432`.