2018-08-08 12:28:26 +00:00
|
|
|
error[E0530]: match bindings cannot shadow tuple structs
|
2018-12-25 15:56:47 +00:00
|
|
|
--> $DIR/pattern-binding-disambiguation.rs:24:9
|
2018-08-08 12:28:26 +00:00
|
|
|
|
|
|
|
|
LL | struct TupleStruct();
|
2018-11-11 16:46:04 +00:00
|
|
|
| --------------------- the tuple struct `TupleStruct` is defined here
|
2018-08-08 12:28:26 +00:00
|
|
|
...
|
2019-03-09 12:03:44 +00:00
|
|
|
LL | TupleStruct => {}
|
2022-07-08 11:54:11 +00:00
|
|
|
| ^^^^^^^^^^^
|
|
|
|
| |
|
|
|
|
| cannot be named the same as a tuple struct
|
|
|
|
| help: try specify the pattern arguments: `TupleStruct(..)`
|
2018-08-08 12:28:26 +00:00
|
|
|
|
|
|
|
error[E0530]: match bindings cannot shadow tuple variants
|
2018-12-25 15:56:47 +00:00
|
|
|
--> $DIR/pattern-binding-disambiguation.rs:33:9
|
2018-08-08 12:28:26 +00:00
|
|
|
|
|
|
|
|
LL | use E::*;
|
2018-11-11 16:46:04 +00:00
|
|
|
| ---- the tuple variant `TupleVariant` is imported here
|
2018-08-08 12:28:26 +00:00
|
|
|
...
|
2019-03-09 12:03:44 +00:00
|
|
|
LL | TupleVariant => {}
|
2022-07-08 11:54:11 +00:00
|
|
|
| ^^^^^^^^^^^^
|
|
|
|
| |
|
|
|
|
| cannot be named the same as a tuple variant
|
|
|
|
| help: try specify the pattern arguments: `TupleVariant(..)`
|
2018-08-08 12:28:26 +00:00
|
|
|
|
|
|
|
error[E0530]: match bindings cannot shadow struct variants
|
2018-12-25 15:56:47 +00:00
|
|
|
--> $DIR/pattern-binding-disambiguation.rs:36:9
|
2018-08-08 12:28:26 +00:00
|
|
|
|
|
|
|
|
LL | use E::*;
|
2018-11-11 16:46:04 +00:00
|
|
|
| ---- the struct variant `BracedVariant` is imported here
|
2018-08-08 12:28:26 +00:00
|
|
|
...
|
2019-03-09 12:03:44 +00:00
|
|
|
LL | BracedVariant => {}
|
2018-08-08 12:28:26 +00:00
|
|
|
| ^^^^^^^^^^^^^ cannot be named the same as a struct variant
|
|
|
|
|
|
|
|
error[E0530]: match bindings cannot shadow statics
|
2018-12-25 15:56:47 +00:00
|
|
|
--> $DIR/pattern-binding-disambiguation.rs:42:9
|
2018-08-08 12:28:26 +00:00
|
|
|
|
|
|
|
|
LL | static STATIC: () = ();
|
2018-11-11 16:46:04 +00:00
|
|
|
| ----------------------- the static `STATIC` is defined here
|
2018-08-08 12:28:26 +00:00
|
|
|
...
|
2019-03-09 12:03:44 +00:00
|
|
|
LL | STATIC => {}
|
2018-08-08 12:28:26 +00:00
|
|
|
| ^^^^^^ cannot be named the same as a static
|
|
|
|
|
|
|
|
error[E0530]: let bindings cannot shadow tuple structs
|
2018-12-25 15:56:47 +00:00
|
|
|
--> $DIR/pattern-binding-disambiguation.rs:49:9
|
2018-08-08 12:28:26 +00:00
|
|
|
|
|
|
|
|
LL | struct TupleStruct();
|
2018-11-11 16:46:04 +00:00
|
|
|
| --------------------- the tuple struct `TupleStruct` is defined here
|
2018-08-08 12:28:26 +00:00
|
|
|
...
|
2019-03-09 12:03:44 +00:00
|
|
|
LL | let TupleStruct = doesnt_matter;
|
2018-08-08 12:28:26 +00:00
|
|
|
| ^^^^^^^^^^^ cannot be named the same as a tuple struct
|
|
|
|
|
|
|
|
error[E0530]: let bindings cannot shadow tuple variants
|
2018-12-25 15:56:47 +00:00
|
|
|
--> $DIR/pattern-binding-disambiguation.rs:52:9
|
2018-08-08 12:28:26 +00:00
|
|
|
|
|
|
|
|
LL | use E::*;
|
2018-11-11 16:46:04 +00:00
|
|
|
| ---- the tuple variant `TupleVariant` is imported here
|
2018-08-08 12:28:26 +00:00
|
|
|
...
|
2019-03-09 12:03:44 +00:00
|
|
|
LL | let TupleVariant = doesnt_matter;
|
2018-08-08 12:28:26 +00:00
|
|
|
| ^^^^^^^^^^^^ cannot be named the same as a tuple variant
|
|
|
|
|
|
|
|
error[E0530]: let bindings cannot shadow struct variants
|
2018-12-25 15:56:47 +00:00
|
|
|
--> $DIR/pattern-binding-disambiguation.rs:53:9
|
2018-08-08 12:28:26 +00:00
|
|
|
|
|
|
|
|
LL | use E::*;
|
2018-11-11 16:46:04 +00:00
|
|
|
| ---- the struct variant `BracedVariant` is imported here
|
2018-08-08 12:28:26 +00:00
|
|
|
...
|
2019-03-09 12:03:44 +00:00
|
|
|
LL | let BracedVariant = doesnt_matter;
|
2018-08-08 12:28:26 +00:00
|
|
|
| ^^^^^^^^^^^^^ cannot be named the same as a struct variant
|
|
|
|
|
|
|
|
error[E0530]: let bindings cannot shadow statics
|
2018-12-25 15:56:47 +00:00
|
|
|
--> $DIR/pattern-binding-disambiguation.rs:55:9
|
2018-08-08 12:28:26 +00:00
|
|
|
|
|
|
|
|
LL | static STATIC: () = ();
|
2018-11-11 16:46:04 +00:00
|
|
|
| ----------------------- the static `STATIC` is defined here
|
2018-08-08 12:28:26 +00:00
|
|
|
...
|
2019-03-09 12:03:44 +00:00
|
|
|
LL | let STATIC = doesnt_matter;
|
2018-08-08 12:28:26 +00:00
|
|
|
| ^^^^^^ cannot be named the same as a static
|
|
|
|
|
|
|
|
error: aborting due to 8 previous errors
|
|
|
|
|
|
|
|
For more information about this error, try `rustc --explain E0530`.
|