rust/src/test/ui/reachable/expr_box.stderr
Niko Matsakis 609bfe82fd cherry-pick over the tests I wrote for the reachability code
For the most part, the current code performs similarly, although it
differs in some particulars. I'll be nice to have these tests for
judging future changes, as well.
2017-03-30 07:55:29 -04:00

14 lines
291 B
Text

error: unreachable expression
--> $DIR/expr_box.rs:16:13
|
16 | let x = box return;
| ^^^^^^^^^^
|
note: lint level defined here
--> $DIR/expr_box.rs:13:9
|
13 | #![deny(unreachable_code)]
| ^^^^^^^^^^^^^^^^
error: aborting due to previous error