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