2017-03-21 08:41:41 -05:00
|
|
|
error: unreachable expression
|
2018-12-25 09:56:47 -06:00
|
|
|
--> $DIR/expr_assign.rs:10:5
|
2017-03-21 08:41:41 -05:00
|
|
|
|
|
2019-03-09 06:03:44 -06:00
|
|
|
LL | x = return;
|
2017-03-21 08:41:41 -05:00
|
|
|
| ^^^^^^^^^^
|
|
|
|
|
|
|
|
|
note: lint level defined here
|
2018-12-25 09:56:47 -06:00
|
|
|
--> $DIR/expr_assign.rs:5:9
|
2017-03-21 08:41:41 -05:00
|
|
|
|
|
2018-02-22 18:42:32 -06:00
|
|
|
LL | #![deny(unreachable_code)]
|
2017-03-21 08:41:41 -05:00
|
|
|
| ^^^^^^^^^^^^^^^^
|
2019-09-18 17:22:13 -05:00
|
|
|
note: any code following this expression is unreachable
|
|
|
|
--> $DIR/expr_assign.rs:10:9
|
|
|
|
|
|
|
|
|
LL | x = return;
|
|
|
|
| ^^^^^^
|
2017-03-21 08:41:41 -05:00
|
|
|
|
|
|
|
error: unreachable expression
|
2018-12-25 09:56:47 -06:00
|
|
|
--> $DIR/expr_assign.rs:20:14
|
2017-03-21 08:41:41 -05:00
|
|
|
|
|
2019-03-09 06:03:44 -06:00
|
|
|
LL | *p = return;
|
2017-03-21 08:41:41 -05:00
|
|
|
| ^^^^^^
|
2019-09-18 17:22:13 -05:00
|
|
|
|
|
|
|
|
note: any code following this expression is unreachable
|
|
|
|
--> $DIR/expr_assign.rs:20:9
|
|
|
|
|
|
|
|
|
LL | *p = return;
|
|
|
|
| ^^
|
2017-03-21 08:41:41 -05:00
|
|
|
|
|
|
|
error: unreachable expression
|
2018-12-25 09:56:47 -06:00
|
|
|
--> $DIR/expr_assign.rs:26:15
|
2017-03-21 08:41:41 -05:00
|
|
|
|
|
2019-03-09 06:03:44 -06:00
|
|
|
LL | *{return; &mut i} = 22;
|
2017-03-21 08:41:41 -05:00
|
|
|
| ^^^^^^
|
2019-09-18 17:22:13 -05:00
|
|
|
|
|
|
|
|
note: any code following this expression is unreachable
|
|
|
|
--> $DIR/expr_assign.rs:26:7
|
|
|
|
|
|
|
|
|
LL | *{return; &mut i} = 22;
|
|
|
|
| ^^^^^^
|
2017-03-21 08:41:41 -05:00
|
|
|
|
2017-07-02 05:49:30 -05:00
|
|
|
error: aborting due to 3 previous errors
|
2017-03-21 08:41:41 -05:00
|
|
|
|