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

44 lines
948 B
Plaintext
Raw Normal View History

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