1 error[E0530]: match bindings cannot shadow tuple structs
2 --> $DIR/pattern-binding-disambiguation.rs:24:9
4 LL | struct TupleStruct();
5 | --------------------- the tuple struct `TupleStruct` is defined here
10 | cannot be named the same as a tuple struct
11 | help: try specify the pattern arguments: `TupleStruct(..)`
13 error[E0530]: match bindings cannot shadow tuple variants
14 --> $DIR/pattern-binding-disambiguation.rs:33:9
17 | ---- the tuple variant `TupleVariant` is imported here
19 LL | TupleVariant => {}
22 | cannot be named the same as a tuple variant
23 | help: try specify the pattern arguments: `TupleVariant(..)`
25 error[E0530]: match bindings cannot shadow statics
26 --> $DIR/pattern-binding-disambiguation.rs:42:9
28 LL | static STATIC: () = ();
29 | ----------------------- the static `STATIC` is defined here
32 | ^^^^^^ cannot be named the same as a static
34 error[E0530]: let bindings cannot shadow tuple structs
35 --> $DIR/pattern-binding-disambiguation.rs:49:9
37 LL | struct TupleStruct();
38 | --------------------- the tuple struct `TupleStruct` is defined here
40 LL | let TupleStruct = doesnt_matter;
41 | ^^^^^^^^^^^ cannot be named the same as a tuple struct
43 error[E0530]: let bindings cannot shadow tuple variants
44 --> $DIR/pattern-binding-disambiguation.rs:52:9
47 | ---- the tuple variant `TupleVariant` is imported here
49 LL | let TupleVariant = doesnt_matter;
50 | ^^^^^^^^^^^^ cannot be named the same as a tuple variant
52 error[E0530]: let bindings cannot shadow statics
53 --> $DIR/pattern-binding-disambiguation.rs:55:9
55 LL | static STATIC: () = ();
56 | ----------------------- the static `STATIC` is defined here
58 LL | let STATIC = doesnt_matter;
59 | ^^^^^^ cannot be named the same as a static
61 error: aborting due to 6 previous errors
63 For more information about this error, try `rustc --explain E0530`.