]> git.lizzy.rs Git - rust.git/blob - src/test/ui/pattern/pattern-binding-disambiguation.stderr
Auto merge of #100845 - timvermeulen:iter_compare, r=scottmcm
[rust.git] / src / test / ui / pattern / pattern-binding-disambiguation.stderr
1 error[E0530]: match bindings cannot shadow tuple structs
2   --> $DIR/pattern-binding-disambiguation.rs:24:9
3    |
4 LL | struct TupleStruct();
5    | --------------------- the tuple struct `TupleStruct` is defined here
6 ...
7 LL |         TupleStruct => {}
8    |         ^^^^^^^^^^^
9    |         |
10    |         cannot be named the same as a tuple struct
11    |         help: try specify the pattern arguments: `TupleStruct(..)`
12
13 error[E0530]: match bindings cannot shadow tuple variants
14   --> $DIR/pattern-binding-disambiguation.rs:33:9
15    |
16 LL | use E::*;
17    |     ---- the tuple variant `TupleVariant` is imported here
18 ...
19 LL |         TupleVariant => {}
20    |         ^^^^^^^^^^^^
21    |         |
22    |         cannot be named the same as a tuple variant
23    |         help: try specify the pattern arguments: `TupleVariant(..)`
24
25 error[E0530]: match bindings cannot shadow struct variants
26   --> $DIR/pattern-binding-disambiguation.rs:36:9
27    |
28 LL | use E::*;
29    |     ---- the struct variant `BracedVariant` is imported here
30 ...
31 LL |         BracedVariant => {}
32    |         ^^^^^^^^^^^^^ cannot be named the same as a struct variant
33
34 error[E0530]: match bindings cannot shadow statics
35   --> $DIR/pattern-binding-disambiguation.rs:42:9
36    |
37 LL | static STATIC: () = ();
38    | ----------------------- the static `STATIC` is defined here
39 ...
40 LL |         STATIC => {}
41    |         ^^^^^^ cannot be named the same as a static
42
43 error[E0530]: let bindings cannot shadow tuple structs
44   --> $DIR/pattern-binding-disambiguation.rs:49:9
45    |
46 LL | struct TupleStruct();
47    | --------------------- the tuple struct `TupleStruct` is defined here
48 ...
49 LL |     let TupleStruct = doesnt_matter;
50    |         ^^^^^^^^^^^ cannot be named the same as a tuple struct
51
52 error[E0530]: let bindings cannot shadow tuple variants
53   --> $DIR/pattern-binding-disambiguation.rs:52:9
54    |
55 LL | use E::*;
56    |     ---- the tuple variant `TupleVariant` is imported here
57 ...
58 LL |     let TupleVariant = doesnt_matter;
59    |         ^^^^^^^^^^^^ cannot be named the same as a tuple variant
60
61 error[E0530]: let bindings cannot shadow struct variants
62   --> $DIR/pattern-binding-disambiguation.rs:53:9
63    |
64 LL | use E::*;
65    |     ---- the struct variant `BracedVariant` is imported here
66 ...
67 LL |     let BracedVariant = doesnt_matter;
68    |         ^^^^^^^^^^^^^ cannot be named the same as a struct variant
69
70 error[E0530]: let bindings cannot shadow statics
71   --> $DIR/pattern-binding-disambiguation.rs:55:9
72    |
73 LL | static STATIC: () = ();
74    | ----------------------- the static `STATIC` is defined here
75 ...
76 LL |     let STATIC = doesnt_matter;
77    |         ^^^^^^ cannot be named the same as a static
78
79 error: aborting due to 8 previous errors
80
81 For more information about this error, try `rustc --explain E0530`.