]> git.lizzy.rs Git - rust.git/blob - src/test/ui/pattern/pattern-binding-disambiguation.stderr
Rollup merge of #105555 - krasimirgg:llvm-int-opt-2, r=cuviper
[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 statics
26   --> $DIR/pattern-binding-disambiguation.rs:42:9
27    |
28 LL | static STATIC: () = ();
29    | ----------------------- the static `STATIC` is defined here
30 ...
31 LL |         STATIC => {}
32    |         ^^^^^^ cannot be named the same as a static
33
34 error[E0530]: let bindings cannot shadow tuple structs
35   --> $DIR/pattern-binding-disambiguation.rs:49:9
36    |
37 LL | struct TupleStruct();
38    | --------------------- the tuple struct `TupleStruct` is defined here
39 ...
40 LL |     let TupleStruct = doesnt_matter;
41    |         ^^^^^^^^^^^ cannot be named the same as a tuple struct
42
43 error[E0530]: let bindings cannot shadow tuple variants
44   --> $DIR/pattern-binding-disambiguation.rs:52:9
45    |
46 LL | use E::*;
47    |     ---- the tuple variant `TupleVariant` is imported here
48 ...
49 LL |     let TupleVariant = doesnt_matter;
50    |         ^^^^^^^^^^^^ cannot be named the same as a tuple variant
51
52 error[E0530]: let bindings cannot shadow statics
53   --> $DIR/pattern-binding-disambiguation.rs:55:9
54    |
55 LL | static STATIC: () = ();
56    | ----------------------- the static `STATIC` is defined here
57 ...
58 LL |     let STATIC = doesnt_matter;
59    |         ^^^^^^ cannot be named the same as a static
60
61 error: aborting due to 6 previous errors
62
63 For more information about this error, try `rustc --explain E0530`.