rust/src/test/ui/issues/issue-31221.stderr

33 lines
762 B
Plaintext
Raw Normal View History

error: unreachable pattern
--> $DIR/issue-31221.rs:28:9
|
2018-02-22 18:42:32 -06:00
LL | Var3 => (),
2017-12-19 21:53:39 -06:00
| ---- matches any value
2018-02-22 18:42:32 -06:00
LL | Var2 => (),
2017-12-19 21:53:39 -06:00
| ^^^^ unreachable pattern
|
note: lint level defined here
--> $DIR/issue-31221.rs:14:9
|
2018-02-22 18:42:32 -06:00
LL | #![deny(unreachable_patterns)]
| ^^^^^^^^^^^^^^^^^^^^
error: unreachable pattern
--> $DIR/issue-31221.rs:34:9
|
2018-02-22 18:42:32 -06:00
LL | &Var3 => (),
2017-12-19 21:53:39 -06:00
| ----- matches any value
2018-02-22 18:42:32 -06:00
LL | &Var2 => (),
2017-12-19 21:53:39 -06:00
| ^^^^^ unreachable pattern
error: unreachable pattern
--> $DIR/issue-31221.rs:41:9
|
2018-02-22 18:42:32 -06:00
LL | (c, d) => (),
2017-12-19 21:53:39 -06:00
| ------ matches any value
2018-02-22 18:42:32 -06:00
LL | anything => ()
2017-12-19 21:53:39 -06:00
| ^^^^^^^^ unreachable pattern
error: aborting due to 3 previous errors