]> git.lizzy.rs Git - rust.git/blob - src/test/ui/parser/issue-102806.stderr
Rollup merge of #103445 - fmease:fix-50291, r=estebank
[rust.git] / src / test / ui / parser / issue-102806.stderr
1 error: expected `..`, found `...`
2   --> $DIR/issue-102806.rs:11:26
3    |
4 LL |     let _ = V3 { z: 0.0, ...v};
5    |                          ^^^
6    |
7 help: use `..` to fill in the rest of the fields
8    |
9 LL |     let _ = V3 { z: 0.0, ..v};
10    |                          ~~
11
12 error: expected `..`, found `...`
13   --> $DIR/issue-102806.rs:14:26
14    |
15 LL |     let _ = V3 { z: 0.0, ...Default::default() };
16    |                          ^^^
17    |
18 help: use `..` to fill in the rest of the fields
19    |
20 LL |     let _ = V3 { z: 0.0, ..Default::default() };
21    |                          ~~
22
23 error: expected identifier, found `...`
24   --> $DIR/issue-102806.rs:17:26
25    |
26 LL |     let _ = V3 { z: 0.0, ... };
27    |             --           ^^^ expected identifier
28    |             |
29    |             while parsing this struct
30
31 error: expected field pattern, found `...`
32   --> $DIR/issue-102806.rs:21:22
33    |
34 LL |     let V3 { z: val, ... } = v;
35    |                      ^^^ help: to omit remaining fields, use one fewer `.`: `..`
36
37 error[E0063]: missing fields `x` and `y` in initializer of `V3`
38   --> $DIR/issue-102806.rs:17:13
39    |
40 LL |     let _ = V3 { z: 0.0, ... };
41    |             ^^ missing `x` and `y`
42
43 error: aborting due to 5 previous errors
44
45 For more information about this error, try `rustc --explain E0063`.