mirror of
https://github.com/rust-lang/rust-clippy
synced 2024-11-10 15:14:29 +00:00
16 lines
497 B
Text
16 lines
497 B
Text
error: redundant field names in struct initialization
|
|
--> $DIR/redundant_field_names.rs:22:17
|
|
|
|
|
22 | gender: gender,
|
|
| ^^^^^^ help: replace 'gender: gender' with 'gender'
|
|
|
|
|
= note: `-D redundant-field-names` implied by `-D warnings`
|
|
|
|
error: redundant field names in struct initialization
|
|
--> $DIR/redundant_field_names.rs:23:14
|
|
|
|
|
23 | age: age,
|
|
| ^^^ help: replace 'age: age' with 'age'
|
|
|
|
error: aborting due to 2 previous errors
|
|
|