rust/tests/ui/reachable/expr_assign.stderr

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

34 lines
843 B
Plaintext
Raw Normal View History

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