rust/tests/ui/uninhabited/uninhabited-patterns.stderr

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

39 lines
840 B
Plaintext
Raw Normal View History

2018-08-08 07:28:26 -05:00
error: unreachable pattern
--> $DIR/uninhabited-patterns.rs:27:9
2018-08-08 07:28:26 -05:00
|
2019-03-09 06:03:44 -06:00
LL | &[..] => (),
2018-08-08 07:28:26 -05:00
| ^^^^^
|
2020-01-22 17:57:38 -06:00
note: the lint level is defined here
--> $DIR/uninhabited-patterns.rs:6:9
2018-08-08 07:28:26 -05:00
|
LL | #![deny(unreachable_patterns)]
| ^^^^^^^^^^^^^^^^^^^^
error: unreachable pattern
--> $DIR/uninhabited-patterns.rs:32:9
2018-08-08 07:28:26 -05:00
|
2019-03-09 06:03:44 -06:00
LL | Ok(box _) => (),
2018-08-08 07:28:26 -05:00
| ^^^^^^^^^
error: unreachable pattern
--> $DIR/uninhabited-patterns.rs:34:9
2018-08-08 07:28:26 -05:00
|
2019-03-09 06:03:44 -06:00
LL | Err(&[..]) => (),
2018-08-08 07:28:26 -05:00
| ^^^^^^^^^^
error: unreachable pattern
--> $DIR/uninhabited-patterns.rs:41:9
2018-08-08 07:28:26 -05:00
|
2019-03-09 06:03:44 -06:00
LL | Err(Ok(_y)) => (),
2018-08-08 07:28:26 -05:00
| ^^^^^^^^^^^
error: unreachable pattern
--> $DIR/uninhabited-patterns.rs:44:15
2018-08-08 07:28:26 -05:00
|
LL | while let Some(_y) = foo() {
| ^^^^^^^^
error: aborting due to 5 previous errors