2017-03-21 08:41:41 -05:00
|
|
|
error: unreachable expression
|
|
|
|
--> $DIR/expr_struct.rs:25:13
|
|
|
|
|
|
|
|
|
25 | let x = Foo { a: 22, b: 33, ..return };
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
|
note: lint level defined here
|
|
|
|
--> $DIR/expr_struct.rs:14:9
|
|
|
|
|
|
|
|
|
14 | #![deny(unreachable_code)]
|
|
|
|
| ^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
error: unreachable expression
|
|
|
|
--> $DIR/expr_struct.rs:30:33
|
|
|
|
|
|
|
|
|
30 | let x = Foo { a: return, b: 33, ..return };
|
|
|
|
| ^^
|
|
|
|
|
|
|
|
error: unreachable expression
|
|
|
|
--> $DIR/expr_struct.rs:35:39
|
|
|
|
|
|
|
|
|
35 | let x = Foo { a: 22, b: return, ..return };
|
|
|
|
| ^^^^^^
|
|
|
|
|
|
|
|
error: unreachable expression
|
|
|
|
--> $DIR/expr_struct.rs:40:13
|
|
|
|
|
|
|
|
|
40 | let x = Foo { a: 22, b: return };
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
2017-05-22 06:46:05 -05:00
|
|
|
error: aborting due to previous error(s)
|
2017-03-21 08:41:41 -05:00
|
|
|
|