]>
Commit | Line | Data |
---|---|---|
0731742a XL |
1 | error[E0412]: cannot find type `Bar` in this scope |
2 | --> $DIR/issue-4366-2.rs:15:21 | |
8faf50e0 | 3 | | |
0731742a | 4 | LL | fn sub() -> Bar { 1 } |
8faf50e0 | 5 | | ^^^ not found in this scope |
e74abb32 | 6 | | |
c295e0f8 XL |
7 | note: type alias `a::b::Bar` exists but is inaccessible |
8 | --> $DIR/issue-4366-2.rs:11:9 | |
8faf50e0 | 9 | | |
c295e0f8 XL |
10 | LL | type Bar = isize; |
11 | | ^^^^^^^^^^^^^^^^^ not accessible | |
8faf50e0 XL |
12 | |
13 | error[E0423]: expected function, found module `foo` | |
0731742a | 14 | --> $DIR/issue-4366-2.rs:25:5 |
8faf50e0 | 15 | | |
532ac7d7 | 16 | LL | foo(); |
8faf50e0 | 17 | | ^^^ not a function |
e74abb32 | 18 | | |
f035d41b | 19 | help: consider importing this function instead |
8faf50e0 XL |
20 | | |
21 | LL | use foo::foo; | |
22 | | | |
8faf50e0 XL |
23 | |
24 | error: aborting due to 2 previous errors | |
25 | ||
48663c56 | 26 | Some errors have detailed explanations: E0412, E0423. |
8faf50e0 | 27 | For more information about an error, try `rustc --explain E0412`. |