2017-03-21 21:41:41 +08:00
|
|
|
error: unreachable expression
|
2019-12-11 22:51:28 +08:00
|
|
|
--> $DIR/expr_add.rs:17:13
|
2017-03-21 21:41:41 +08:00
|
|
|
|
|
2019-03-09 20:03:44 +08:00
|
|
|
LL | let x = Foo + return;
|
2019-09-22 03:33:02 +08:00
|
|
|
| ^^^^^^------
|
|
|
|
| | |
|
|
|
|
| | any code following this expression is unreachable
|
|
|
|
| unreachable expression
|
2017-03-21 21:41:41 +08:00
|
|
|
|
|
2020-01-23 07:57:38 +08:00
|
|
|
note: the lint level is defined here
|
2019-12-11 22:51:28 +08:00
|
|
|
--> $DIR/expr_add.rs:3:9
|
2017-03-21 21:41:41 +08:00
|
|
|
|
|
2018-02-23 08:42:32 +08:00
|
|
|
LL | #![deny(unreachable_code)]
|
2017-03-21 21:41:41 +08:00
|
|
|
| ^^^^^^^^^^^^^^^^
|
|
|
|
|
2023-11-21 23:44:16 +08:00
|
|
|
error: aborting due to 1 previous error
|
2017-03-21 21:41:41 +08:00
|
|
|
|