1 error[E0063]: missing fields `b` and `d` in initializer of `A`
2 --> $DIR/struct-record-suggestion.rs:10:13
4 LL | let q = A { c: 5..Default::default() };
5 | ^ missing `b` and `d`
7 note: this expression may have been misinterpreted as a `..` range expression
8 --> $DIR/struct-record-suggestion.rs:10:20
10 LL | let q = A { c: 5..Default::default() };
11 | ^^^^^^^^^^^^^^^^^^^^^
12 help: to set the remaining fields from `Default::default()`, separate the last named field with a comma
14 LL | let q = A { c: 5, ..Default::default() };
17 error[E0308]: mismatched types
18 --> $DIR/struct-record-suggestion.rs:23:20
20 LL | let q = B { b: 1..Default::default() };
21 | ^^^^^^^^^^^^^^^^^^^^^ expected `u32`, found `Range<{integer}>`
23 = note: expected type `u32`
24 found struct `std::ops::Range<{integer}>`
25 note: this expression may have been misinterpreted as a `..` range expression
26 --> $DIR/struct-record-suggestion.rs:23:20
28 LL | let q = B { b: 1..Default::default() };
29 | ^^^^^^^^^^^^^^^^^^^^^
30 help: to set the remaining fields from `Default::default()`, separate the last named field with a comma
32 LL | let q = B { b: 1, ..Default::default() };
35 error: aborting due to 2 previous errors
37 Some errors have detailed explanations: E0063, E0308.
38 For more information about an error, try `rustc --explain E0063`.