2017-03-21 09:41:41 -04:00
|
|
|
error: unreachable expression
|
2018-12-25 08:56:47 -07:00
|
|
|
--> $DIR/expr_block.rs:10:9
|
2017-03-21 09:41:41 -04:00
|
|
|
|
|
2018-02-23 03:42:32 +03:00
|
|
|
LL | 22 //~ ERROR unreachable
|
2017-03-21 09:41:41 -04:00
|
|
|
| ^^
|
|
|
|
|
|
|
|
|
note: lint level defined here
|
2018-12-25 08:56:47 -07:00
|
|
|
--> $DIR/expr_block.rs:4:9
|
2017-03-21 09:41:41 -04:00
|
|
|
|
|
2018-02-23 03:42:32 +03:00
|
|
|
LL | #![deny(unreachable_code)]
|
2017-03-21 09:41:41 -04:00
|
|
|
| ^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
error: unreachable statement
|
2018-12-25 08:56:47 -07:00
|
|
|
--> $DIR/expr_block.rs:25:9
|
2017-03-21 09:41:41 -04:00
|
|
|
|
|
2018-02-23 03:42:32 +03:00
|
|
|
LL | println!("foo");
|
2017-03-21 09:41:41 -04:00
|
|
|
| ^^^^^^^^^^^^^^^^
|
|
|
|
|
|
2017-11-21 19:48:35 +00: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)
|
2017-03-21 09:41:41 -04:00
|
|
|
|
2017-07-02 13:49:30 +03:00
|
|
|
error: aborting due to 2 previous errors
|
2017-03-21 09:41:41 -04:00
|
|
|
|