2018-07-15 16:11:54 -05:00
|
|
|
error: unreachable statement
|
2018-12-25 09:56:47 -06:00
|
|
|
--> $DIR/issue-2150.rs:8:5
|
2018-07-15 16:11:54 -05:00
|
|
|
|
|
2019-09-21 14:33:02 -05:00
|
|
|
LL | panic!();
|
|
|
|
| --------- any code following this expression is unreachable
|
2018-07-15 16:11:54 -05:00
|
|
|
LL | for x in &v { i += 1; }
|
2019-09-21 14:33:02 -05:00
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^ unreachable statement
|
2018-07-15 16:11:54 -05:00
|
|
|
|
|
|
|
|
note: lint level defined here
|
2018-12-25 09:56:47 -06:00
|
|
|
--> $DIR/issue-2150.rs:1:9
|
2018-07-15 16:11:54 -05:00
|
|
|
|
|
|
|
|
LL | #![deny(unreachable_code)]
|
|
|
|
| ^^^^^^^^^^^^^^^^
|
2019-09-18 17:22:13 -05:00
|
|
|
= note: this error originates in a macro outside of the current crate (in Nightly builds, run with -Z external-macro-backtrace for more info)
|
2018-07-15 16:11:54 -05:00
|
|
|
|
|
|
|
error: aborting due to previous error
|
|
|
|
|