fork/rust

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

borsAuto merge of #103046 - JanBeh:PR_clarify_cmp_terminology, r=workingjubilee3bcad65fbf6

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