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
653 B
Plaintext
Raw Normal View History

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