rust/src/test/ui/pattern/usefulness/top-level-alternation.stderr

69 lines
1.4 KiB
Plaintext
Raw Normal View History

2019-11-29 06:25:36 -06:00
error: unreachable pattern
--> $DIR/top-level-alternation.rs:4:23
|
LL | while let 0..=2 | 1 = 0 {}
| ^
|
2020-01-22 17:57:38 -06:00
note: the lint level is defined here
2019-11-29 06:25:36 -06:00
--> $DIR/top-level-alternation.rs:1:9
|
LL | #![deny(unreachable_patterns)]
| ^^^^^^^^^^^^^^^^^^^^
error: unreachable pattern
2019-11-29 06:25:36 -06:00
--> $DIR/top-level-alternation.rs:5:20
|
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
2019-11-29 09:53:54 -06:00
--> $DIR/top-level-alternation.rs:53:9
2019-11-29 06:25:36 -06:00
|
LL | 1..=2 => {},
| ^^^^^
2019-11-29 09:53:54 -06:00
error: aborting due to 10 previous errors
2019-11-29 06:25:36 -06:00