2017-03-21 09:41:41 -04:00
|
|
|
error: unreachable expression
|
2018-01-21 16:44:41 +08:00
|
|
|
--> $DIR/expr_assign.rs:19:5
|
2017-03-21 09:41:41 -04:00
|
|
|
|
|
2018-02-23 03:42:32 +03:00
|
|
|
LL | x = return; //~ ERROR unreachable
|
2017-03-21 09:41:41 -04:00
|
|
|
| ^^^^^^^^^^
|
|
|
|
|
|
|
|
|
note: lint level defined here
|
|
|
|
--> $DIR/expr_assign.rs:14:9
|
|
|
|
|
|
2018-02-23 03:42:32 +03:00
|
|
|
LL | #![deny(unreachable_code)]
|
2017-03-21 09:41:41 -04:00
|
|
|
| ^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
error: unreachable expression
|
2018-01-21 16:44:41 +08:00
|
|
|
--> $DIR/expr_assign.rs:29:14
|
2017-03-21 09:41:41 -04:00
|
|
|
|
|
2018-02-23 03:42:32 +03:00
|
|
|
LL | *p = return; //~ ERROR unreachable
|
2017-03-21 09:41:41 -04:00
|
|
|
| ^^^^^^
|
|
|
|
|
|
|
|
error: unreachable expression
|
2018-01-21 16:44:41 +08:00
|
|
|
--> $DIR/expr_assign.rs:35:15
|
2017-03-21 09:41:41 -04:00
|
|
|
|
|
2018-02-23 03:42:32 +03:00
|
|
|
LL | *{return; &mut i} = 22; //~ ERROR unreachable
|
2017-03-21 09:41:41 -04:00
|
|
|
| ^^^^^^
|
|
|
|
|
2017-07-02 13:49:30 +03:00
|
|
|
error: aborting due to 3 previous errors
|
2017-03-21 09:41:41 -04:00
|
|
|
|