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

27 lines
595 B
Plaintext
Raw Normal View History

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