1 error: field assignment outside of initializer for an instance created with Default::default()
2 --> $DIR/field_reassign_with_default.rs:30:5
7 = note: `-D clippy::field-reassign-with-default` implied by `-D warnings`
8 note: consider initializing the variable with `A { i: 42, ..Default::default() }` and removing relevant reassignments
9 --> $DIR/field_reassign_with_default.rs:29:5
11 LL | let mut a: A = Default::default();
12 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
14 error: field assignment outside of initializer for an instance created with Default::default()
15 --> $DIR/field_reassign_with_default.rs:70:5
20 note: consider initializing the variable with `A { j: 43, i: 42 }` and removing relevant reassignments
21 --> $DIR/field_reassign_with_default.rs:69:5
23 LL | let mut a: A = Default::default();
24 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
26 error: field assignment outside of initializer for an instance created with Default::default()
27 --> $DIR/field_reassign_with_default.rs:75:5
32 note: consider initializing the variable with `A { i: 42, j: 44 }` and removing relevant reassignments
33 --> $DIR/field_reassign_with_default.rs:74:5
35 LL | let mut a: A = Default::default();
36 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
38 error: field assignment outside of initializer for an instance created with Default::default()
39 --> $DIR/field_reassign_with_default.rs:81:5
44 note: consider initializing the variable with `A { i: 42, ..Default::default() }` and removing relevant reassignments
45 --> $DIR/field_reassign_with_default.rs:80:5
47 LL | let mut a = A::default();
48 | ^^^^^^^^^^^^^^^^^^^^^^^^^
50 error: field assignment outside of initializer for an instance created with Default::default()
51 --> $DIR/field_reassign_with_default.rs:91:5
53 LL | a.i = Default::default();
54 | ^^^^^^^^^^^^^^^^^^^^^^^^^
56 note: consider initializing the variable with `A::default()` and removing relevant reassignments
57 --> $DIR/field_reassign_with_default.rs:90:5
59 LL | let mut a: A = Default::default();
60 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
62 error: field assignment outside of initializer for an instance created with Default::default()
63 --> $DIR/field_reassign_with_default.rs:95:5
65 LL | a.i = Default::default();
66 | ^^^^^^^^^^^^^^^^^^^^^^^^^
68 note: consider initializing the variable with `A { j: 45, ..Default::default() }` and removing relevant reassignments
69 --> $DIR/field_reassign_with_default.rs:94:5
71 LL | let mut a: A = Default::default();
72 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
74 error: aborting due to 6 previous errors