]> git.lizzy.rs Git - rust.git/blob - src/test/ui/privacy/privacy2.stderr
Merge commit '3e7c6dec244539970b593824334876f8b6ed0b18' into clippyup
[rust.git] / src / test / ui / privacy / privacy2.stderr
1 error[E0432]: unresolved import `bar::foo`
2   --> $DIR/privacy2.rs:17:9
3    |
4 LL |     use bar::foo;
5    |         ^^^^^^^^ no `foo` in `bar`
6
7 error[E0603]: function import `foo` is private
8   --> $DIR/privacy2.rs:23:20
9    |
10 LL |     use bar::glob::foo;
11    |                    ^^^ private function import
12    |
13 note: the function import `foo` is defined here...
14   --> $DIR/privacy2.rs:10:13
15    |
16 LL |         use foo;
17    |             ^^^
18 note: ...and refers to the function `foo` which is defined here
19   --> $DIR/privacy2.rs:14:1
20    |
21 LL | pub fn foo() {}
22    | ^^^^^^^^^^^^ consider importing it directly
23
24 error: requires `sized` lang_item
25
26 error: aborting due to 3 previous errors
27
28 Some errors have detailed explanations: E0432, E0603.
29 For more information about an error, try `rustc --explain E0432`.