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   |                    ^^^ private function import
12   |
13note: the function import `foo` is defined here...
14  --> $DIR/privacy2.rs:10:13
15   |
16LL |         use foo;
17   |             ^^^
18note: ...and refers to the function `foo` which is defined here
19  --> $DIR/privacy2.rs:14:1
20   |
21LL | pub fn foo() {}
22   | ^^^^^^^^^^^^ consider importing it directly
23
24error: requires `sized` lang_item
25
26error: aborting due to 3 previous errors
27
28Some errors have detailed explanations: E0432, E0603.
29For more information about an error, try `rustc --explain E0432`.
30