rust/src/test/ui/or-patterns/exhaustiveness-unreachable-pattern.stderr

117 lines
2.6 KiB
Plaintext
Raw Normal View History

error: unreachable pattern
2019-12-27 11:53:00 -06:00
--> $DIR/exhaustiveness-unreachable-pattern.rs:8:9
|
LL | (1,) => {}
| ^^^^
|
2020-01-22 17:57:38 -06:00
note: the lint level is defined here
2019-12-27 11:53:00 -06:00
--> $DIR/exhaustiveness-unreachable-pattern.rs:2:9
|
LL | #![deny(unreachable_patterns)]
| ^^^^^^^^^^^^^^^^^^^^
error: unreachable pattern
2019-12-27 11:53:00 -06:00
--> $DIR/exhaustiveness-unreachable-pattern.rs:13:9
|
LL | (2,) => {}
| ^^^^
error: unreachable pattern
2019-12-27 11:53:00 -06:00
--> $DIR/exhaustiveness-unreachable-pattern.rs:19:9
|
LL | (1 | 2,) => {}
| ^^^^^^^^
error: unreachable pattern
2019-12-27 11:53:00 -06:00
--> $DIR/exhaustiveness-unreachable-pattern.rs:24:9
|
LL | (1, 3) => {}
| ^^^^^^
error: unreachable pattern
2019-12-27 11:53:00 -06:00
--> $DIR/exhaustiveness-unreachable-pattern.rs:25:9
|
LL | (1, 4) => {}
| ^^^^^^
error: unreachable pattern
2019-12-27 11:53:00 -06:00
--> $DIR/exhaustiveness-unreachable-pattern.rs:26:9
|
LL | (2, 4) => {}
| ^^^^^^
error: unreachable pattern
2019-12-27 11:53:00 -06:00
--> $DIR/exhaustiveness-unreachable-pattern.rs:27:9
|
LL | (2 | 1, 4) => {}
| ^^^^^^^^^^
error: unreachable pattern
2019-12-27 11:53:00 -06:00
--> $DIR/exhaustiveness-unreachable-pattern.rs:29:9
|
LL | (1, 4 | 5) => {}
| ^^^^^^^^^^
error: unreachable pattern
2020-07-02 15:49:58 -05:00
--> $DIR/exhaustiveness-unreachable-pattern.rs:37:9
|
LL | (Some(1),) => {}
| ^^^^^^^^^^
error: unreachable pattern
2020-07-02 15:49:58 -05:00
--> $DIR/exhaustiveness-unreachable-pattern.rs:38:9
|
LL | (None,) => {}
| ^^^^^^^
error: unreachable pattern
2020-07-02 15:49:58 -05:00
--> $DIR/exhaustiveness-unreachable-pattern.rs:43:9
|
2019-12-27 11:53:00 -06:00
LL | ((1..=4,),) => {}
| ^^^^^^^^^^^
error: unreachable pattern
2020-07-02 15:49:58 -05:00
--> $DIR/exhaustiveness-unreachable-pattern.rs:48:14
|
2019-12-27 11:53:00 -06:00
LL | (1 | 1,) => {}
| ^
error: unreachable pattern
2020-07-02 15:49:58 -05:00
--> $DIR/exhaustiveness-unreachable-pattern.rs:53:15
|
2020-07-02 15:49:58 -05:00
LL | | 0
| ^
error: unreachable pattern
2020-07-02 15:49:58 -05:00
--> $DIR/exhaustiveness-unreachable-pattern.rs:55:15
|
2020-07-02 15:49:58 -05:00
LL | | 0] => {}
| ^
error: unreachable pattern
2020-07-02 15:49:58 -05:00
--> $DIR/exhaustiveness-unreachable-pattern.rs:63:10
|
LL | [1
| ^
error: unreachable pattern
2020-07-02 15:49:58 -05:00
--> $DIR/exhaustiveness-unreachable-pattern.rs:69:14
|
LL | Some(0
| ^
2020-07-02 15:49:58 -05:00
error: unreachable pattern
2020-10-20 13:32:59 -05:00
--> $DIR/exhaustiveness-unreachable-pattern.rs:96:15
2020-07-02 15:49:58 -05:00
|
LL | | true) => {}
| ^^^^
error: unreachable pattern
2020-10-20 13:32:59 -05:00
--> $DIR/exhaustiveness-unreachable-pattern.rs:102:15
2020-07-02 15:49:58 -05:00
|
LL | | true,
| ^^^^
error: aborting due to 18 previous errors