rust/src/test/ui/reachable/expr_cast.stderr

20 lines
444 B
Plaintext
Raw Normal View History

error: unreachable expression
2018-12-25 09:56:47 -06:00
--> $DIR/expr_cast.rs:9:13
|
2019-03-09 06:03:44 -06:00
LL | let x = {return} as !;
| ^^^^^^^^^^^^^
|
note: lint level defined here
2018-12-25 09:56:47 -06:00
--> $DIR/expr_cast.rs:4:9
|
2018-02-22 18:42:32 -06:00
LL | #![deny(unreachable_code)]
| ^^^^^^^^^^^^^^^^
note: any code following this expression is unreachable
--> $DIR/expr_cast.rs:9:14
|
LL | let x = {return} as !;
| ^^^^^^
error: aborting due to previous error