rust/tests/ui/issues/issue-27033.stderr

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

22 lines
664 B
Plaintext
Raw Normal View History

2018-07-15 21:11:54 +00:00
error[E0530]: match bindings cannot shadow unit variants
--> $DIR/issue-27033.rs:3:9
2018-07-15 21:11:54 +00:00
|
2019-03-09 12:03:44 +00:00
LL | None @ _ => {}
2018-07-15 21:11:54 +00:00
| ^^^^ cannot be named the same as a unit variant
--> $SRC_DIR/std/src/prelude/mod.rs:LL:COL
|
= note: the unit variant `None` is defined here
2018-07-15 21:11:54 +00:00
error[E0530]: match bindings cannot shadow constants
--> $DIR/issue-27033.rs:7:9
2018-07-15 21:11:54 +00:00
|
LL | const C: u8 = 1;
| ---------------- the constant `C` is defined here
2018-07-15 21:11:54 +00:00
LL | match 1 {
2019-03-09 12:03:44 +00:00
LL | C @ 2 => {
2018-07-15 21:11:54 +00:00
| ^ cannot be named the same as a constant
error: aborting due to 2 previous errors
For more information about this error, try `rustc --explain E0530`.