mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-01 15:01:51 +00:00
41e8d152dc
Co-authored-by: Adrian <adrian.iosdev@gmail.com>
17 lines
418 B
Plaintext
17 lines
418 B
Plaintext
error: unreachable statement
|
|
--> $DIR/issue-2150.rs:8:5
|
|
|
|
|
LL | panic!();
|
|
| -------- any code following this expression is unreachable
|
|
LL | for x in &v { i += 1; }
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^ unreachable statement
|
|
|
|
|
note: the lint level is defined here
|
|
--> $DIR/issue-2150.rs:1:9
|
|
|
|
|
LL | #![deny(unreachable_code)]
|
|
| ^^^^^^^^^^^^^^^^
|
|
|
|
error: aborting due to 1 previous error
|
|
|