rust/tests/ui/reachable/unreachable-code.stderr
Nilstrieb 41e8d152dc Show number in error message even for one error
Co-authored-by: Adrian <adrian.iosdev@gmail.com>
2023-11-24 19:15:52 +01:00

18 lines
396 B
Plaintext

error: unreachable statement
--> $DIR/unreachable-code.rs:7:3
|
LL | loop{}
| ------ any code following this expression is unreachable
LL |
LL | let a = 3;
| ^^^^^^^^^^ unreachable statement
|
note: the lint level is defined here
--> $DIR/unreachable-code.rs:1:9
|
LL | #![deny(unreachable_code)]
| ^^^^^^^^^^^^^^^^
error: aborting due to 1 previous error