fork/rust
git clone https://git.julia.blue/fork/rust
3bcad65fbf6
master
1error[E0530]: match bindings cannot shadow tuple structs 2 --> $DIR/pattern-binding-disambiguation.rs:24:9 3 | 4LL | struct TupleStruct(); 5 | --------------------- the tuple struct `TupleStruct` is defined here 6... 7LL | TupleStruct => {} 8 | ^^^^^^^^^^^ 9 | | 10 | cannot be named the same as a tuple struct 11 | help: try specify the pattern arguments: `TupleStruct(..)` 12 13error[E0530]: match bindings cannot shadow tuple variants 14 --> $DIR/pattern-binding-disambiguation.rs:33:9 15 | 16LL | use E::*; 17 | ---- the tuple variant `TupleVariant` is imported here 18... 19LL | TupleVariant => {} 20 | ^^^^^^^^^^^^ 21 | | 22 | cannot be named the same as a tuple variant 23 | help: try specify the pattern arguments: `TupleVariant(..)` 24 25error[E0530]: match bindings cannot shadow statics 26 --> $DIR/pattern-binding-disambiguation.rs:42:9 27 | 28LL | static STATIC: () = (); 29 | ----------------------- the static `STATIC` is defined here 30... 31LL | STATIC => {} 32 | ^^^^^^ cannot be named the same as a static 33 34error[E0530]: let bindings cannot shadow tuple structs 35 --> $DIR/pattern-binding-disambiguation.rs:49:9 36 | 37LL | struct TupleStruct(); 38 | --------------------- the tuple struct `TupleStruct` is defined here 39... 40LL | let TupleStruct = doesnt_matter; 41 | ^^^^^^^^^^^ cannot be named the same as a tuple struct 42 43error[E0530]: let bindings cannot shadow tuple variants 44 --> $DIR/pattern-binding-disambiguation.rs:52:9 45 | 46LL | use E::*; 47 | ---- the tuple variant `TupleVariant` is imported here 48... 49LL | let TupleVariant = doesnt_matter; 50 | ^^^^^^^^^^^^ cannot be named the same as a tuple variant 51 52error[E0530]: let bindings cannot shadow statics 53 --> $DIR/pattern-binding-disambiguation.rs:55:9 54 | 55LL | static STATIC: () = (); 56 | ----------------------- the static `STATIC` is defined here 57... 58LL | let STATIC = doesnt_matter; 59 | ^^^^^^ cannot be named the same as a static 60 61error: aborting due to 6 previous errors 62 63For more information about this error, try `rustc --explain E0530`.