fork/rust

git clone https://git.julia.blue/fork/rust

borsAuto merge of #103046 - JanBeh:PR_clarify_cmp_terminology, r=workingjubilee3bcad65fbf6

master
1.3 KiB50 linesraw
1error: expected `..`, found `...`
2  --> $DIR/issue-102806.rs:11:26
3   |
4LL |     let _ = V3 { z: 0.0, ...v};
5   |                          ^^^
6   |
7help: use `..` to fill in the rest of the fields
8   |
9LL |     let _ = V3 { z: 0.0, ..v};
10   |                          ~~
11
12error: expected `..`, found `...`
13  --> $DIR/issue-102806.rs:14:26
14   |
15LL |     let _ = V3 { z: 0.0, ...Default::default() };
16   |                          ^^^
17   |
18help: use `..` to fill in the rest of the fields
19   |
20LL |     let _ = V3 { z: 0.0, ..Default::default() };
21   |                          ~~
22
23error: expected identifier, found `...`
24  --> $DIR/issue-102806.rs:17:26
25   |
26LL |     let _ = V3 { z: 0.0, ... };
27   |             --           ^^^ expected identifier
28   |             |
29   |             while parsing this struct
30
31error: expected field pattern, found `...`
32  --> $DIR/issue-102806.rs:21:22
33   |
34LL |     let V3 { z: val, ... } = v;
35   |                      ^^^
36   |
37help: to omit remaining fields, use `..`
38   |
39LL |     let V3 { z: val, .. } = v;
40   |                      ~~
41
42error[E0063]: missing fields `x` and `y` in initializer of `V3`
43  --> $DIR/issue-102806.rs:17:13
44   |
45LL |     let _ = V3 { z: 0.0, ... };
46   |             ^^ missing `x` and `y`
47
48error: aborting due to 5 previous errors
49
50For more information about this error, try `rustc --explain E0063`.