]> git.proxmox.com Git - rustc.git/blob - src/test/ui/parser/issues/issue-52496.stderr
New upstream version 1.64.0+dfsg1
[rustc.git] / src / test / ui / parser / issues / issue-52496.stderr
1 error: float literals must have an integer part
2 --> $DIR/issue-52496.rs:4:24
3 |
4 LL | let _ = Foo { bar: .5, baz: 42 };
5 | ^^ help: must have an integer part: `0.5`
6
7 error: expected one of `,`, `:`, or `}`, found `.`
8 --> $DIR/issue-52496.rs:8:22
9 |
10 LL | let _ = Foo { bar.into(), bat: -1, . };
11 | --- - ^ expected one of `,`, `:`, or `}`
12 | | |
13 | | help: try naming a field: `bar:`
14 | while parsing this struct
15
16 error: expected identifier, found `.`
17 --> $DIR/issue-52496.rs:8:40
18 |
19 LL | let _ = Foo { bar.into(), bat: -1, . };
20 | --- ^ expected identifier
21 | |
22 | while parsing this struct
23
24 error[E0063]: missing field `bat` in initializer of `Foo`
25 --> $DIR/issue-52496.rs:4:13
26 |
27 LL | let _ = Foo { bar: .5, baz: 42 };
28 | ^^^ missing `bat`
29
30 error[E0063]: missing fields `bar` and `baz` in initializer of `Foo`
31 --> $DIR/issue-52496.rs:8:13
32 |
33 LL | let _ = Foo { bar.into(), bat: -1, . };
34 | ^^^ missing `bar` and `baz`
35
36 error: aborting due to 5 previous errors
37
38 For more information about this error, try `rustc --explain E0063`.