fork/rust
git clone https://git.julia.blue/fork/rust
3bcad65fbf6
master
1error[E0530]: match bindings cannot shadow tuple structs 2 --> $DIR/empty-struct-tuple-pat.rs:22:9 3 | 4LL | struct Empty2(); 5 | ---------------- the tuple struct `Empty2` is defined here 6... 7LL | Empty2 => () 8 | ^^^^^^ 9 | | 10 | cannot be named the same as a tuple struct 11 | help: try specify the pattern arguments: `Empty2(..)` 12 13error[E0530]: match bindings cannot shadow tuple structs 14 --> $DIR/empty-struct-tuple-pat.rs:25:9 15 | 16LL | use empty_struct::*; 17 | --------------- the tuple struct `XEmpty6` is imported here 18... 19LL | XEmpty6 => () 20 | ^^^^^^^ 21 | | 22 | cannot be named the same as a tuple struct 23 | help: try specify the pattern arguments: `XEmpty6(..)` 24 25error[E0532]: expected unit struct, unit variant or constant, found tuple variant `E::Empty4` 26 --> $DIR/empty-struct-tuple-pat.rs:29:9 27 | 28LL | Empty4() 29 | -------- `E::Empty4` defined here 30... 31LL | E::Empty4 => () 32 | ^^^^^^^^^ help: use the tuple variant pattern syntax instead: `E::Empty4()` 33 34error[E0532]: expected unit struct, unit variant or constant, found tuple variant `XE::XEmpty5` 35 --> $DIR/empty-struct-tuple-pat.rs:33:9 36 | 37LL | XE::XEmpty5 => (), 38 | ^^^^^^^^^^^ 39 | 40 ::: $DIR/auxiliary/empty-struct.rs:7:5 41 | 42LL | XEmpty4, 43 | ------- similarly named unit variant `XEmpty4` defined here 44LL | XEmpty5(), 45 | ------- `XE::XEmpty5` defined here 46 | 47help: use the tuple variant pattern syntax instead 48 | 49LL | XE::XEmpty5() => (), 50 | ~~~~~~~~~~~~~ 51help: a unit variant with a similar name exists 52 | 53LL | XE::XEmpty4 => (), 54 | ~~~~~~~ 55 56error: aborting due to 4 previous errors 57 58Some errors have detailed explanations: E0530, E0532. 59For more information about an error, try `rustc --explain E0530`.