2017-03-21 09:41:41 -04:00
|
|
|
error: unreachable expression
|
|
|
|
--> $DIR/expr_block.rs:21:9
|
|
|
|
|
|
2017-11-20 13:13:27 +01:00
|
|
|
21 | 22 //~ ERROR unreachable
|
2017-03-21 09:41:41 -04:00
|
|
|
| ^^
|
|
|
|
|
|
|
|
|
note: lint level defined here
|
|
|
|
--> $DIR/expr_block.rs:14:9
|
|
|
|
|
|
|
|
|
14 | #![deny(unreachable_code)]
|
|
|
|
| ^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
error: unreachable statement
|
|
|
|
--> $DIR/expr_block.rs:36:9
|
|
|
|
|
|
|
|
|
36 | println!("foo");
|
|
|
|
| ^^^^^^^^^^^^^^^^
|
|
|
|
|
|
2017-11-20 18:03:20 +00:00
|
|
|
= note: this error originates in a macro outside of the current crate (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
|
|
|
|