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