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

33 lines
825 B
Plaintext
Raw Normal View History

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 };
| ^^^^^^^^^^^^^^^^^^^^^^^^
error: aborting due to previous error(s)