mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-01 06:51:58 +00:00
34 lines
843 B
Plaintext
34 lines
843 B
Plaintext
error: unreachable expression
|
|
--> $DIR/expr_assign.rs:10:5
|
|
|
|
|
LL | x = return;
|
|
| ^^^^------
|
|
| | |
|
|
| | any code following this expression is unreachable
|
|
| unreachable expression
|
|
|
|
|
note: the lint level is defined here
|
|
--> $DIR/expr_assign.rs:5:9
|
|
|
|
|
LL | #![deny(unreachable_code)]
|
|
| ^^^^^^^^^^^^^^^^
|
|
|
|
error: unreachable expression
|
|
--> $DIR/expr_assign.rs:20:14
|
|
|
|
|
LL | *p = return;
|
|
| -- ^^^^^^ unreachable expression
|
|
| |
|
|
| any code following this expression is unreachable
|
|
|
|
error: unreachable expression
|
|
--> $DIR/expr_assign.rs:26:15
|
|
|
|
|
LL | *{return; &mut i} = 22;
|
|
| ------ ^^^^^^ unreachable expression
|
|
| |
|
|
| any code following this expression is unreachable
|
|
|
|
error: aborting due to 3 previous errors
|
|
|