summary refs log tree commit diff
path: root/src/test/ui/reachable/expr_struct.stderr
blob: 4b7ac6604132c165b255200be13f61c49b0ae77f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
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 4 previous errors