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