1
Fork 0
rust/tests/ui/error-codes/E0001.stderr

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

24 lines
651 B
Text
Raw Normal View History

2018-02-07 19:35:35 -08:00
error: unreachable pattern
2018-12-25 08:56:47 -07:00
--> $DIR/E0001.rs:8:9
2018-02-07 19:35:35 -08:00
|
2024-07-24 08:40:04 +02:00
LL | _ => {/* ... */}
| ^ unreachable pattern
|
note: these patterns collectively make the last one unreachable
--> $DIR/E0001.rs:8:9
|
LL | Some(_) => {/* ... */}
| ------- matches some of the same values
LL | None => {/* ... */}
| ---- matches some of the same values
2019-03-09 15:03:44 +03:00
LL | _ => {/* ... */}
2024-07-24 08:40:04 +02:00
| ^ collectively making this unreachable
2020-01-22 23:57:38 +00:00
note: the lint level is defined here
2018-12-25 08:56:47 -07:00
--> $DIR/E0001.rs:1:9
2018-02-07 19:35:35 -08:00
|
2018-02-23 03:42:32 +03:00
LL | #![deny(unreachable_patterns)]
2018-02-07 19:35:35 -08:00
| ^^^^^^^^^^^^^^^^^^^^
error: aborting due to 1 previous error
2018-02-07 19:35:35 -08:00