]> git.lizzy.rs Git - rust.git/blob - tests/ui/reachable/unreachable-code.stderr
Rollup merge of #106701 - ibraheemdev:sync-sender-spin, r=Amanieu
[rust.git] / tests / ui / reachable / unreachable-code.stderr
1 error: unreachable statement
2   --> $DIR/unreachable-code.rs:7:3
3    |
4 LL |   loop{}
5    |   ------ any code following this expression is unreachable
6 LL |
7 LL |   let a = 3;
8    |   ^^^^^^^^^^ unreachable statement
9    |
10 note: the lint level is defined here
11   --> $DIR/unreachable-code.rs:1:9
12    |
13 LL | #![deny(unreachable_code)]
14    |         ^^^^^^^^^^^^^^^^
15
16 error: aborting due to previous error
17