]> git.lizzy.rs Git - rust.git/blob - src/test/ui/unreachable/unreachable-loop-patterns.stderr
Auto merge of #65422 - tmandry:rollup-r5u3mlc, r=tmandry
[rust.git] / src / test / ui / unreachable / unreachable-loop-patterns.stderr
1 error: unreachable pattern
2   --> $DIR/unreachable-loop-patterns.rs:20:9
3    |
4 LL |     for _ in unimplemented!() as Void {}
5    |         ^
6    |
7 note: lint level defined here
8   --> $DIR/unreachable-loop-patterns.rs:7:9
9    |
10 LL | #![deny(unreachable_patterns)]
11    |         ^^^^^^^^^^^^^^^^^^^^
12
13 error: unreachable pattern
14   --> $DIR/unreachable-loop-patterns.rs:20:14
15    |
16 LL |     for _ in unimplemented!() as Void {}
17    |              ^^^^^^^^^^^^^^^^^^^^^^^^
18
19 error: aborting due to 2 previous errors
20