mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-27 09:14:20 +00:00
27 lines
529 B
Plaintext
27 lines
529 B
Plaintext
|
error: unreachable expression
|
||
|
--> $DIR/expr_assign.rs:20:5
|
||
|
|
|
||
|
20 | x = return;
|
||
|
| ^^^^^^^^^^
|
||
|
|
|
||
|
note: lint level defined here
|
||
|
--> $DIR/expr_assign.rs:14:9
|
||
|
|
|
||
|
14 | #![deny(unreachable_code)]
|
||
|
| ^^^^^^^^^^^^^^^^
|
||
|
|
||
|
error: unreachable expression
|
||
|
--> $DIR/expr_assign.rs:30:14
|
||
|
|
|
||
|
30 | *p = return;
|
||
|
| ^^^^^^
|
||
|
|
||
|
error: unreachable expression
|
||
|
--> $DIR/expr_assign.rs:36:15
|
||
|
|
|
||
|
36 | *{return; &mut i} = 22;
|
||
|
| ^^^^^^
|
||
|
|
||
|
error: aborting due to 3 previous errors
|
||
|
|