]> git.lizzy.rs Git - rust.git/blob - src/test/ui/reachable/expr_struct.stderr
Merge commit '8da837185714cefbb261e93e9846afb11c1dc60e' into sync-rustfmt-subtree
[rust.git] / src / test / ui / reachable / expr_struct.stderr
1 error: unreachable expression
2   --> $DIR/expr_struct.rs:14:13
3    |
4 LL |     let x = Foo { a: 22, b: 33, ..return };
5    |             ^^^^^^^^^^^^^^^^^^^^^^------^^
6    |             |                     |
7    |             |                     any code following this expression is unreachable
8    |             unreachable expression
9    |
10 note: the lint level is defined here
11   --> $DIR/expr_struct.rs:4:9
12    |
13 LL | #![deny(unreachable_code)]
14    |         ^^^^^^^^^^^^^^^^
15
16 error: unreachable expression
17   --> $DIR/expr_struct.rs:19:33
18    |
19 LL |     let x = Foo { a: return, b: 33, ..return };
20    |                      ------     ^^ unreachable expression
21    |                      |
22    |                      any code following this expression is unreachable
23
24 error: unreachable expression
25   --> $DIR/expr_struct.rs:24:39
26    |
27 LL |     let x = Foo { a: 22, b: return, ..return };
28    |                             ------    ^^^^^^ unreachable expression
29    |                             |
30    |                             any code following this expression is unreachable
31
32 error: unreachable expression
33   --> $DIR/expr_struct.rs:29:13
34    |
35 LL |     let x = Foo { a: 22, b: return };
36    |             ^^^^^^^^^^^^^^^^------^^
37    |             |               |
38    |             |               any code following this expression is unreachable
39    |             unreachable expression
40
41 error: aborting due to 4 previous errors
42