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