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

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

25 lines
839 B
Plaintext
Raw Normal View History

error: unreachable pattern
--> $DIR/issue-57472.rs:15:13
|
LL | Punned { foo: [_], .. } => println!("foo"),
| ----------------------- matches all the relevant values
LL | Punned { bar: [_], .. } => println!("bar"),
| ^^^^^^^^^^^^^^^^^^^^^^^ no value can reach this
|
2020-01-22 23:57:38 +00:00
note: the lint level is defined here
--> $DIR/issue-57472.rs:2:9
|
LL | #![deny(unreachable_patterns)]
| ^^^^^^^^^^^^^^^^^^^^
error: unreachable pattern
2023-12-07 11:56:48 +00:00
--> $DIR/issue-57472.rs:32:17
|
LL | Punned { foo: [_] } => println!("foo"),
| ------------------- matches all the relevant values
2023-12-07 11:56:48 +00:00
LL | Punned { bar: [_] } => println!("bar"),
| ^^^^^^^^^^^^^^^^^^^ no value can reach this
error: aborting due to 2 previous errors