]> git.lizzy.rs Git - rust.git/blob - tests/ui/structs/multi-line-fru-suggestion.stderr
internally change regions to be covariant
[rust.git] / tests / ui / structs / multi-line-fru-suggestion.stderr
1 error[E0063]: missing field `defaulted` in initializer of `Outer`
2   --> $DIR/multi-line-fru-suggestion.rs:14:5
3    |
4 LL |     Outer {
5    |     ^^^^^ missing `defaulted`
6    |
7 note: this expression may have been misinterpreted as a `..` range expression
8   --> $DIR/multi-line-fru-suggestion.rs:16:16
9    |
10 LL |           inner: Inner {
11    |  ________________^
12 LL | |             a: 1,
13 LL | |             b: 2,
14 LL | |         }
15    | |_________^ this expression does not end in a comma...
16 LL |           ..Default::default()
17    |           ^^^^^^^^^^^^^^^^^^^^ ... so this is interpreted as a `..` range expression, instead of functional record update syntax
18 help: to set the remaining fields from `Default::default()`, separate the last named field with a comma
19    |
20 LL |         }, 
21    |          +
22
23 error: aborting due to previous error
24
25 For more information about this error, try `rustc --explain E0063`.