1 error[E0530]: match bindings cannot shadow tuple structs
2 --> $DIR/pattern-binding-disambiguation.rs:34:9
4 LL | struct TupleStruct();
5 | --------------------- the tuple struct `TupleStruct` is defined here
7 LL | TupleStruct => {} //~ ERROR match bindings cannot shadow tuple structs
8 | ^^^^^^^^^^^ cannot be named the same as a tuple struct
10 error[E0530]: match bindings cannot shadow tuple variants
11 --> $DIR/pattern-binding-disambiguation.rs:43:9
14 | ---- the tuple variant `TupleVariant` is imported here
16 LL | TupleVariant => {} //~ ERROR match bindings cannot shadow tuple variants
17 | ^^^^^^^^^^^^ cannot be named the same as a tuple variant
19 error[E0530]: match bindings cannot shadow struct variants
20 --> $DIR/pattern-binding-disambiguation.rs:46:9
23 | ---- the struct variant `BracedVariant` is imported here
25 LL | BracedVariant => {} //~ ERROR match bindings cannot shadow struct variants
26 | ^^^^^^^^^^^^^ cannot be named the same as a struct variant
28 error[E0530]: match bindings cannot shadow statics
29 --> $DIR/pattern-binding-disambiguation.rs:52:9
31 LL | static STATIC: () = ();
32 | ----------------------- the static `STATIC` is defined here
34 LL | STATIC => {} //~ ERROR match bindings cannot shadow statics
35 | ^^^^^^ cannot be named the same as a static
37 error[E0530]: let bindings cannot shadow tuple structs
38 --> $DIR/pattern-binding-disambiguation.rs:59:9
40 LL | struct TupleStruct();
41 | --------------------- the tuple struct `TupleStruct` is defined here
43 LL | let TupleStruct = doesnt_matter; //~ ERROR let bindings cannot shadow tuple structs
44 | ^^^^^^^^^^^ cannot be named the same as a tuple struct
46 error[E0530]: let bindings cannot shadow tuple variants
47 --> $DIR/pattern-binding-disambiguation.rs:62:9
50 | ---- the tuple variant `TupleVariant` is imported here
52 LL | let TupleVariant = doesnt_matter; //~ ERROR let bindings cannot shadow tuple variants
53 | ^^^^^^^^^^^^ cannot be named the same as a tuple variant
55 error[E0530]: let bindings cannot shadow struct variants
56 --> $DIR/pattern-binding-disambiguation.rs:63:9
59 | ---- the struct variant `BracedVariant` is imported here
61 LL | let BracedVariant = doesnt_matter; //~ ERROR let bindings cannot shadow struct variants
62 | ^^^^^^^^^^^^^ cannot be named the same as a struct variant
64 error[E0530]: let bindings cannot shadow statics
65 --> $DIR/pattern-binding-disambiguation.rs:65:9
67 LL | static STATIC: () = ();
68 | ----------------------- the static `STATIC` is defined here
70 LL | let STATIC = doesnt_matter; //~ ERROR let bindings cannot shadow statics
71 | ^^^^^^ cannot be named the same as a static
73 error: aborting due to 8 previous errors
75 For more information about this error, try `rustc --explain E0530`.