rust/tests/ui/pattern/usefulness/top-level-alternation.stderr

75 lines
1.6 KiB
Plaintext
Raw Normal View History

2019-11-29 06:25:36 -06:00
error: unreachable pattern
--> $DIR/top-level-alternation.rs:4:23
2019-11-29 06:25:36 -06:00
|
LL | while let 0..=2 | 1 = 0 {}
| ^
|
2020-01-22 17:57:38 -06:00
note: the lint level is defined here
--> $DIR/top-level-alternation.rs:1:9
2019-11-29 06:25:36 -06:00
|
LL | #![deny(unreachable_patterns)]
| ^^^^^^^^^^^^^^^^^^^^
error: unreachable pattern
--> $DIR/top-level-alternation.rs:5:20
2019-11-29 06:25:36 -06:00
|
LL | if let 0..=2 | 1 = 0 {}
| ^
error: unreachable pattern
--> $DIR/top-level-alternation.rs:9:15
2019-11-29 06:25:36 -06:00
|
LL | | 0 => {}
| ^
error: unreachable pattern
--> $DIR/top-level-alternation.rs:14:15
2019-11-29 06:25:36 -06:00
|
LL | | Some(0) => {}
| ^^^^^^^
error: unreachable pattern
--> $DIR/top-level-alternation.rs:19:9
2019-11-29 06:25:36 -06:00
|
LL | (0, 0) => {}
| ^^^^^^
error: unreachable pattern
--> $DIR/top-level-alternation.rs:39:9
2019-11-29 06:25:36 -06:00
|
LL | _ => {}
| ^
error: unreachable pattern
--> $DIR/top-level-alternation.rs:43:9
2019-11-29 06:25:36 -06:00
|
LL | Some(_) => {}
| ^^^^^^^
error: unreachable pattern
--> $DIR/top-level-alternation.rs:44:9
2019-11-29 06:25:36 -06:00
|
LL | None => {}
| ^^^^
error: unreachable pattern
--> $DIR/top-level-alternation.rs:49:9
2019-11-29 06:25:36 -06:00
|
2019-11-29 09:53:54 -06:00
LL | None | Some(_) => {}
| ^^^^^^^^^^^^^^
2019-11-29 06:25:36 -06:00
error: unreachable pattern
--> $DIR/top-level-alternation.rs:53:9
2019-11-29 06:25:36 -06:00
|
LL | 1..=2 => {},
| ^^^^^
error: unreachable pattern
--> $DIR/top-level-alternation.rs:56:14
|
LL | let (0 | 0) = 0 else { return };
| ^
error: aborting due to 11 previous errors
2019-11-29 06:25:36 -06:00