Update unreachable loop patterns test

This commit is contained in:
varkor
2019-05-23 21:39:36 +01:00
parent 49f01d823f
commit 3e4cefe1bd
2 changed files with 8 additions and 1 deletions
@@ -19,4 +19,5 @@ fn next(&mut self) -> Option<Void> {
fn main() {
for _ in unimplemented!() as Void {}
//~^ ERROR unreachable pattern
//~^^ ERROR unreachable pattern
}
@@ -10,5 +10,11 @@ note: lint level defined here
LL | #![deny(unreachable_patterns)]
| ^^^^^^^^^^^^^^^^^^^^
error: aborting due to previous error
error: unreachable pattern
--> $DIR/unreachable-loop-patterns.rs:20:14
|
LL | for _ in unimplemented!() as Void {}
| ^^^^^^^^^^^^^^^^^^^^^^^^
error: aborting due to 2 previous errors