rust/tests/ui/pattern/usefulness/issue-12369.stderr

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

15 lines
327 B
Plaintext
Raw Normal View History

2018-07-15 14:11:54 -07:00
error: unreachable pattern
2019-12-30 01:23:42 +01:00
--> $DIR/issue-12369.rs:9:9
2018-07-15 14:11:54 -07:00
|
LL | &[10,a, ref rest @ ..] => 10
| ^^^^^^^^^^^^^^^^^^^^^^
2018-07-15 14:11:54 -07:00
|
2020-01-22 23:57:38 +00:00
note: the lint level is defined here
2019-12-30 01:23:42 +01:00
--> $DIR/issue-12369.rs:1:9
2018-07-15 14:11:54 -07:00
|
LL | #![deny(unreachable_patterns)]
| ^^^^^^^^^^^^^^^^^^^^
error: aborting due to previous error