]> git.lizzy.rs Git - rust.git/blob - src/test/ui/imports/issue-4366-2.stderr
Preparing for merge from rustc
[rust.git] / src / test / ui / imports / issue-4366-2.stderr
1 error[E0412]: cannot find type `Bar` in this scope
2   --> $DIR/issue-4366-2.rs:15:21
3    |
4 LL |         fn sub() -> Bar { 1 }
5    |                     ^^^ not found in this scope
6    |
7 note: type alias `a::b::Bar` exists but is inaccessible
8   --> $DIR/issue-4366-2.rs:11:9
9    |
10 LL |         type Bar = isize;
11    |         ^^^^^^^^^^^^^^^^^ not accessible
12
13 error[E0423]: expected function, found module `foo`
14   --> $DIR/issue-4366-2.rs:25:5
15    |
16 LL |     foo();
17    |     ^^^ not a function
18    |
19 help: consider importing this function instead
20    |
21 LL | use foo::foo;
22    |
23
24 error: aborting due to 2 previous errors
25
26 Some errors have detailed explanations: E0412, E0423.
27 For more information about an error, try `rustc --explain E0412`.