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

32 lines
655 B
Plaintext
Raw Normal View History

error: unreachable expression
2018-12-25 08:56:47 -07:00
--> $DIR/expr_call.rs:13:17
|
2019-03-09 15:03:44 +03:00
LL | foo(return, 22);
| ^^
|
note: lint level defined here
2018-12-25 08:56:47 -07:00
--> $DIR/expr_call.rs:5:9
|
2018-02-23 03:42:32 +03:00
LL | #![deny(unreachable_code)]
| ^^^^^^^^^^^^^^^^
note: any code following this expression is unreachable
--> $DIR/expr_call.rs:13:9
|
LL | foo(return, 22);
| ^^^^^^
error: unreachable call
2018-12-25 08:56:47 -07:00
--> $DIR/expr_call.rs:18:5
|
2019-03-09 15:03:44 +03:00
LL | bar(return);
| ^^^
|
note: any code following this expression is unreachable
--> $DIR/expr_call.rs:18:9
|
LL | bar(return);
| ^^^^^^
error: aborting due to 2 previous errors