fork/rust
git clone https://git.julia.blue/fork/rust
4560ea788cb
1.39.0
1error[E0423]: expected function, found trait `Bar` 2 --> $DIR/privacy-ns1.rs:20:5 3 | 4LL | Bar(); 5 | ^^^ 6help: a unit struct with a similar name exists 7 | 8LL | Baz(); 9 | ^^^ 10help: possible better candidates are found in other modules, you can import them into scope 11 | 12LL | use foo1::Bar; 13 | 14LL | use foo2::Bar; 15 | 16LL | use foo3::Bar; 17 | 18 19error[E0573]: expected type, found function `Bar` 20 --> $DIR/privacy-ns1.rs:35:17 21 | 22LL | let _x: Box<Bar>; 23 | ^^^ 24help: a struct with a similar name exists 25 | 26LL | let _x: Box<Baz>; 27 | ^^^ 28help: possible better candidates are found in other modules, you can import them into scope 29 | 30LL | use foo1::Bar; 31 | 32LL | use foo2::Bar; 33 | 34LL | use foo3::Bar; 35 | 36 37error[E0425]: cannot find function `Bar` in this scope 38 --> $DIR/privacy-ns1.rs:50:5 39 | 40LL | Bar(); 41 | ^^^ 42help: a unit struct with a similar name exists 43 | 44LL | Baz(); 45 | ^^^ 46help: possible candidates are found in other modules, you can import them into scope 47 | 48LL | use foo1::Bar; 49 | 50LL | use foo2::Bar; 51 | 52LL | use foo3::Bar; 53 | 54 55error[E0412]: cannot find type `Bar` in this scope 56 --> $DIR/privacy-ns1.rs:51:17 57 | 58LL | let _x: Box<Bar>; 59 | ^^^ 60help: a struct with a similar name exists 61 | 62LL | let _x: Box<Baz>; 63 | ^^^ 64help: possible candidates are found in other modules, you can import them into scope 65 | 66LL | use foo1::Bar; 67 | 68LL | use foo2::Bar; 69 | 70LL | use foo3::Bar; 71 | 72 73error: aborting due to 4 previous errors 74 75Some errors have detailed explanations: E0412, E0423, E0425. 76For more information about an error, try `rustc --explain E0412`.