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 struct variants
26 --> $DIR/pattern-binding-disambiguation.rs:36:9
29 | ---- the struct variant `BracedVariant` is imported here
31 LL | BracedVariant => {}
32 | ^^^^^^^^^^^^^ cannot be named the same as a struct variant
34 error[E0530]: match bindings cannot shadow statics
35 --> $DIR/pattern-binding-disambiguation.rs:42:9
37 LL | static STATIC: () = ();
38 | ----------------------- the static `STATIC` is defined here
41 | ^^^^^^ cannot be named the same as a static
43 error[E0530]: let bindings cannot shadow tuple structs
44 --> $DIR/pattern-binding-disambiguation.rs:49:9
46 LL | struct TupleStruct();
47 | --------------------- the tuple struct `TupleStruct` is defined here
49 LL | let TupleStruct = doesnt_matter;
50 | ^^^^^^^^^^^ cannot be named the same as a tuple struct
52 error[E0530]: let bindings cannot shadow tuple variants
53 --> $DIR/pattern-binding-disambiguation.rs:52:9
56 | ---- the tuple variant `TupleVariant` is imported here
58 LL | let TupleVariant = doesnt_matter;
59 | ^^^^^^^^^^^^ cannot be named the same as a tuple variant
61 error[E0530]: let bindings cannot shadow struct variants
62 --> $DIR/pattern-binding-disambiguation.rs:53:9
65 | ---- the struct variant `BracedVariant` is imported here
67 LL | let BracedVariant = doesnt_matter;
68 | ^^^^^^^^^^^^^ cannot be named the same as a struct variant
70 error[E0530]: let bindings cannot shadow statics
71 --> $DIR/pattern-binding-disambiguation.rs:55:9
73 LL | static STATIC: () = ();
74 | ----------------------- the static `STATIC` is defined here
76 LL | let STATIC = doesnt_matter;
77 | ^^^^^^ cannot be named the same as a static
79 error: aborting due to 8 previous errors
81 For more information about this error, try `rustc --explain E0530`.