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

56 lines
1.5 KiB
Plaintext
Raw Normal View History

error: unreachable expression
2018-12-25 15:56:47 +00:00
--> $DIR/expr_struct.rs:14:13
|
2019-03-09 12:03:44 +00:00
LL | let x = Foo { a: 22, b: 33, ..return };
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
note: lint level defined here
2018-12-25 15:56:47 +00:00
--> $DIR/expr_struct.rs:4:9
|
2018-02-23 00:42:32 +00:00
LL | #![deny(unreachable_code)]
| ^^^^^^^^^^^^^^^^
note: any code following this expression is unreachable
--> $DIR/expr_struct.rs:14:35
|
LL | let x = Foo { a: 22, b: 33, ..return };
| ^^^^^^
error: unreachable expression
2018-12-25 15:56:47 +00:00
--> $DIR/expr_struct.rs:19:33
|
2019-03-09 12:03:44 +00:00
LL | let x = Foo { a: return, b: 33, ..return };
| ^^
|
note: any code following this expression is unreachable
--> $DIR/expr_struct.rs:19:22
|
LL | let x = Foo { a: return, b: 33, ..return };
| ^^^^^^
error: unreachable expression
2018-12-25 15:56:47 +00:00
--> $DIR/expr_struct.rs:24:39
|
2019-03-09 12:03:44 +00:00
LL | let x = Foo { a: 22, b: return, ..return };
| ^^^^^^
|
note: any code following this expression is unreachable
--> $DIR/expr_struct.rs:24:29
|
LL | let x = Foo { a: 22, b: return, ..return };
| ^^^^^^
error: unreachable expression
2018-12-25 15:56:47 +00:00
--> $DIR/expr_struct.rs:29:13
|
2019-03-09 12:03:44 +00:00
LL | let x = Foo { a: 22, b: return };
| ^^^^^^^^^^^^^^^^^^^^^^^^
|
note: any code following this expression is unreachable
--> $DIR/expr_struct.rs:29:29
|
LL | let x = Foo { a: 22, b: return };
| ^^^^^^
error: aborting due to 4 previous errors