Files
rust/tests/ui/pattern/usefulness/issue-31221.stderr

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

41 lines
1.0 KiB
Plaintext
Raw Normal View History

error: unreachable pattern
2018-12-25 08:56:47 -07:00
--> $DIR/issue-31221.rs:18:9
|
2018-02-23 03:42:32 +03:00
LL | Var3 => (),
2017-12-19 19:53:39 -08:00
| ---- matches any value
2018-02-23 03:42:32 +03:00
LL | Var2 => (),
| ^^^^ no value can reach this
|
2020-01-22 23:57:38 +00:00
note: the lint level is defined here
2018-12-25 08:56:47 -07:00
--> $DIR/issue-31221.rs:4:9
|
2018-02-23 03:42:32 +03:00
LL | #![deny(unreachable_patterns)]
| ^^^^^^^^^^^^^^^^^^^^
error: unreachable pattern
2018-12-25 08:56:47 -07:00
--> $DIR/issue-31221.rs:24:9
|
2018-02-23 03:42:32 +03:00
LL | &Var3 => (),
2017-12-19 19:53:39 -08:00
| ----- matches any value
2018-02-23 03:42:32 +03:00
LL | &Var2 => (),
| ^^^^^ no value can reach this
error: unreachable pattern
2018-12-25 08:56:47 -07:00
--> $DIR/issue-31221.rs:31:9
|
2024-07-24 08:40:04 +02:00
LL | anything => ()
| ^^^^^^^^ no value can reach this
2024-07-24 08:40:04 +02:00
|
note: multiple earlier patterns match some of the same values
2024-07-24 08:40:04 +02:00
--> $DIR/issue-31221.rs:31:9
|
LL | (Var1, b) => (),
| --------- matches some of the same values
2018-02-23 03:42:32 +03:00
LL | (c, d) => (),
| ------ matches some of the same values
2018-02-23 03:42:32 +03:00
LL | anything => ()
2024-07-24 08:40:04 +02:00
| ^^^^^^^^ collectively making this unreachable
error: aborting due to 3 previous errors