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