]> git.lizzy.rs Git - rust.git/blob - tests/ui/structs/struct-record-suggestion.stderr
internally change regions to be covariant
[rust.git] / tests / ui / structs / struct-record-suggestion.stderr
1 error[E0063]: missing fields `b` and `d` in initializer of `A`
2   --> $DIR/struct-record-suggestion.rs:10:13
3    |
4 LL |     let q = A { c: 5..Default::default() };
5    |             ^ missing `b` and `d`
6    |
7 note: this expression may have been misinterpreted as a `..` range expression
8   --> $DIR/struct-record-suggestion.rs:10:20
9    |
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
13    |
14 LL |     let q = A { c: 5, ..Default::default() };
15    |                     +
16
17 error[E0308]: mismatched types
18   --> $DIR/struct-record-suggestion.rs:23:20
19    |
20 LL |     let q = B { b: 1..Default::default() };
21    |                    ^^^^^^^^^^^^^^^^^^^^^ expected `u32`, found struct `Range`
22    |
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
27    |
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
31    |
32 LL |     let q = B { b: 1, ..Default::default() };
33    |                     +
34
35 error: aborting due to 2 previous errors
36
37 Some errors have detailed explanations: E0063, E0308.
38 For more information about an error, try `rustc --explain E0063`.