fork/rust

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

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

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