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

75 lines
1.5 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 {}
| ^
|
note: lint level defined here
--> $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
|
LL | None
| ^^^^
error: unreachable pattern
--> $DIR/top-level-alternation.rs:50:15
2019-11-29 06:25:36 -06:00
|
LL | | Some(_) => {}
| ^^^^^^^
error: unreachable pattern
--> $DIR/top-level-alternation.rs:54:9
2019-11-29 06:25:36 -06:00
|
LL | 1..=2 => {},
| ^^^^^
error: aborting due to 11 previous errors
2019-11-29 06:25:36 -06:00