2019-11-26 08:53:54 -06:00
|
|
|
error: unreachable pattern
|
2019-12-27 11:53:00 -06:00
|
|
|
--> $DIR/exhaustiveness-unreachable-pattern.rs:8:9
|
2019-11-26 08:53:54 -06:00
|
|
|
|
|
|
|
|
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
|
2019-11-26 08:53:54 -06:00
|
|
|
|
|
|
|
|
LL | #![deny(unreachable_patterns)]
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
error: unreachable pattern
|
2019-12-27 11:53:00 -06:00
|
|
|
--> $DIR/exhaustiveness-unreachable-pattern.rs:13:9
|
2019-11-26 08:53:54 -06:00
|
|
|
|
|
|
|
|
LL | (2,) => {}
|
|
|
|
| ^^^^
|
|
|
|
|
|
|
|
error: unreachable pattern
|
2019-12-27 11:53:00 -06:00
|
|
|
--> $DIR/exhaustiveness-unreachable-pattern.rs:19:9
|
2019-11-26 08:53:54 -06:00
|
|
|
|
|
|
|
|
LL | (1 | 2,) => {}
|
|
|
|
| ^^^^^^^^
|
|
|
|
|
|
|
|
error: unreachable pattern
|
2019-12-27 11:53:00 -06:00
|
|
|
--> $DIR/exhaustiveness-unreachable-pattern.rs:24:9
|
2019-11-26 08:53:54 -06:00
|
|
|
|
|
|
|
|
LL | (1, 3) => {}
|
|
|
|
| ^^^^^^
|
|
|
|
|
|
|
|
error: unreachable pattern
|
2019-12-27 11:53:00 -06:00
|
|
|
--> $DIR/exhaustiveness-unreachable-pattern.rs:25:9
|
2019-11-26 08:53:54 -06:00
|
|
|
|
|
|
|
|
LL | (1, 4) => {}
|
|
|
|
| ^^^^^^
|
|
|
|
|
|
|
|
error: unreachable pattern
|
2019-12-27 11:53:00 -06:00
|
|
|
--> $DIR/exhaustiveness-unreachable-pattern.rs:26:9
|
2019-11-26 08:53:54 -06:00
|
|
|
|
|
|
|
|
LL | (2, 4) => {}
|
|
|
|
| ^^^^^^
|
|
|
|
|
|
|
|
error: unreachable pattern
|
2019-12-27 11:53:00 -06:00
|
|
|
--> $DIR/exhaustiveness-unreachable-pattern.rs:27:9
|
2019-11-26 08:53:54 -06:00
|
|
|
|
|
|
|
|
LL | (2 | 1, 4) => {}
|
|
|
|
| ^^^^^^^^^^
|
|
|
|
|
|
|
|
error: unreachable pattern
|
2019-12-27 11:53:00 -06:00
|
|
|
--> $DIR/exhaustiveness-unreachable-pattern.rs:29:9
|
2019-11-26 08:53:54 -06:00
|
|
|
|
|
|
|
|
LL | (1, 4 | 5) => {}
|
|
|
|
| ^^^^^^^^^^
|
|
|
|
|
|
|
|
error: unreachable pattern
|
2020-07-02 15:49:58 -05:00
|
|
|
--> $DIR/exhaustiveness-unreachable-pattern.rs:37:9
|
2019-11-26 08:53:54 -06:00
|
|
|
|
|
|
|
|
LL | (Some(1),) => {}
|
|
|
|
| ^^^^^^^^^^
|
|
|
|
|
|
|
|
error: unreachable pattern
|
2020-07-02 15:49:58 -05:00
|
|
|
--> $DIR/exhaustiveness-unreachable-pattern.rs:38:9
|
2019-11-26 08:53:54 -06:00
|
|
|
|
|
|
|
|
LL | (None,) => {}
|
|
|
|
| ^^^^^^^
|
|
|
|
|
|
|
|
error: unreachable pattern
|
2020-07-02 15:49:58 -05:00
|
|
|
--> $DIR/exhaustiveness-unreachable-pattern.rs:43:9
|
2019-11-26 08:53:54 -06:00
|
|
|
|
|
2019-12-27 11:53:00 -06:00
|
|
|
LL | ((1..=4,),) => {}
|
2019-11-26 08:53:54 -06:00
|
|
|
| ^^^^^^^^^^^
|
|
|
|
|
2019-11-29 07:02:14 -06:00
|
|
|
error: unreachable pattern
|
2020-07-02 15:49:58 -05:00
|
|
|
--> $DIR/exhaustiveness-unreachable-pattern.rs:48:14
|
2019-11-29 07:02:14 -06:00
|
|
|
|
|
2019-12-27 11:53:00 -06:00
|
|
|
LL | (1 | 1,) => {}
|
|
|
|
| ^
|
2019-11-29 07:02:14 -06:00
|
|
|
|
|
|
|
error: unreachable pattern
|
2021-01-02 16:38:18 -06:00
|
|
|
--> $DIR/exhaustiveness-unreachable-pattern.rs:52:19
|
|
|
|
|
|
|
|
|
LL | (0 | 1) | 1 => {}
|
|
|
|
| ^
|
|
|
|
|
|
|
|
error: unreachable pattern
|
2021-01-01 16:14:22 -06:00
|
|
|
--> $DIR/exhaustiveness-unreachable-pattern.rs:58:14
|
2021-01-02 16:38:18 -06:00
|
|
|
|
|
|
|
|
LL | 0 | (0 | 0) => {}
|
2021-01-01 16:14:22 -06:00
|
|
|
| ^
|
|
|
|
|
|
|
|
error: unreachable pattern
|
|
|
|
--> $DIR/exhaustiveness-unreachable-pattern.rs:58:18
|
|
|
|
|
|
|
|
|
LL | 0 | (0 | 0) => {}
|
|
|
|
| ^
|
2021-01-02 16:38:18 -06:00
|
|
|
|
|
|
|
error: unreachable pattern
|
2021-01-01 16:14:22 -06:00
|
|
|
--> $DIR/exhaustiveness-unreachable-pattern.rs:66:13
|
2021-01-02 16:38:18 -06:00
|
|
|
|
|
|
|
|
LL | / Some(
|
|
|
|
LL | | 0 | 0) => {}
|
|
|
|
| |______________________^
|
|
|
|
|
|
|
|
error: unreachable pattern
|
2021-01-01 16:14:22 -06:00
|
|
|
--> $DIR/exhaustiveness-unreachable-pattern.rs:72:15
|
2019-11-29 07:02:14 -06:00
|
|
|
|
|
2020-11-05 16:17:26 -06:00
|
|
|
LL | | 0
|
2019-11-29 07:02:14 -06:00
|
|
|
| ^
|
|
|
|
|
|
|
|
error: unreachable pattern
|
2021-01-01 16:14:22 -06:00
|
|
|
--> $DIR/exhaustiveness-unreachable-pattern.rs:74:15
|
2019-11-29 07:02:14 -06:00
|
|
|
|
|
2020-11-05 16:17:26 -06:00
|
|
|
LL | | 0] => {}
|
2019-11-29 07:02:14 -06:00
|
|
|
| ^
|
|
|
|
|
|
|
|
error: unreachable pattern
|
2021-01-01 16:14:22 -06:00
|
|
|
--> $DIR/exhaustiveness-unreachable-pattern.rs:82:10
|
2019-11-29 07:02:14 -06:00
|
|
|
|
|
|
|
|
LL | [1
|
|
|
|
| ^
|
|
|
|
|
|
|
|
error: unreachable pattern
|
2021-01-01 16:14:22 -06:00
|
|
|
--> $DIR/exhaustiveness-unreachable-pattern.rs:94:10
|
2020-12-16 18:42:49 -06:00
|
|
|
|
|
|
|
|
LL | [true
|
|
|
|
| ^^^^
|
|
|
|
|
|
|
|
error: unreachable pattern
|
2021-01-01 16:14:22 -06:00
|
|
|
--> $DIR/exhaustiveness-unreachable-pattern.rs:101:36
|
2020-12-16 19:07:49 -06:00
|
|
|
|
|
|
|
|
LL | (true | false, None | Some(true
|
|
|
|
| ^^^^
|
|
|
|
|
2020-12-16 18:42:49 -06:00
|
|
|
error: unreachable pattern
|
2021-01-01 16:14:22 -06:00
|
|
|
--> $DIR/exhaustiveness-unreachable-pattern.rs:117:14
|
2019-11-29 07:02:14 -06:00
|
|
|
|
|
|
|
|
LL | Some(0
|
|
|
|
| ^
|
|
|
|
|
2020-10-20 16:08:19 -05:00
|
|
|
error: unreachable pattern
|
2021-01-01 16:14:22 -06:00
|
|
|
--> $DIR/exhaustiveness-unreachable-pattern.rs:136:19
|
2020-10-20 16:08:19 -05:00
|
|
|
|
|
|
|
|
LL | | false) => {}
|
|
|
|
| ^^^^^
|
|
|
|
|
2020-07-02 15:49:58 -05:00
|
|
|
error: unreachable pattern
|
2021-01-01 16:14:22 -06:00
|
|
|
--> $DIR/exhaustiveness-unreachable-pattern.rs:144:15
|
2020-07-02 15:49:58 -05:00
|
|
|
|
|
|
|
|
LL | | true) => {}
|
|
|
|
| ^^^^
|
|
|
|
|
|
|
|
error: unreachable pattern
|
2021-01-01 16:14:22 -06:00
|
|
|
--> $DIR/exhaustiveness-unreachable-pattern.rs:150:15
|
2020-07-02 15:49:58 -05:00
|
|
|
|
|
|
|
|
LL | | true,
|
|
|
|
| ^^^^
|
|
|
|
|
2021-01-01 16:14:22 -06:00
|
|
|
error: aborting due to 25 previous errors
|
2019-11-26 08:53:54 -06:00
|
|
|
|