Skip to content

Commit 674a607

Browse files
committed
Fix line numbers wrt. formatting
1 parent ebf054b commit 674a607

File tree

1 file changed

+12
-12
lines changed

1 file changed

+12
-12
lines changed

tests/ui/field_reassign_with_default.stderr

+12-12
Original file line numberDiff line numberDiff line change
@@ -1,72 +1,72 @@
11
error: field assignment outside of initializer for an instance created with Default::default()
2-
--> $DIR/field_reassign_with_default.rs:28:5
2+
--> $DIR/field_reassign_with_default.rs:30:5
33
|
44
LL | a.i = 42;
55
| ^^^^^^^^^
66
|
77
= note: `-D clippy::field-reassign-with-default` implied by `-D warnings`
88
note: consider initializing the variable with `A { i: 42, ..Default::default() }` and removing relevant reassignments
9-
--> $DIR/field_reassign_with_default.rs:27:5
9+
--> $DIR/field_reassign_with_default.rs:29:5
1010
|
1111
LL | let mut a: A = Default::default();
1212
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
1313

1414
error: field assignment outside of initializer for an instance created with Default::default()
15-
--> $DIR/field_reassign_with_default.rs:68:5
15+
--> $DIR/field_reassign_with_default.rs:70:5
1616
|
1717
LL | a.j = 43;
1818
| ^^^^^^^^^
1919
|
2020
note: consider initializing the variable with `A { j: 43, i: 42 }` and removing relevant reassignments
21-
--> $DIR/field_reassign_with_default.rs:67:5
21+
--> $DIR/field_reassign_with_default.rs:69:5
2222
|
2323
LL | let mut a: A = Default::default();
2424
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
2525

2626
error: field assignment outside of initializer for an instance created with Default::default()
27-
--> $DIR/field_reassign_with_default.rs:73:5
27+
--> $DIR/field_reassign_with_default.rs:75:5
2828
|
2929
LL | a.i = 42;
3030
| ^^^^^^^^^
3131
|
3232
note: consider initializing the variable with `A { i: 42, j: 44 }` and removing relevant reassignments
33-
--> $DIR/field_reassign_with_default.rs:72:5
33+
--> $DIR/field_reassign_with_default.rs:74:5
3434
|
3535
LL | let mut a: A = Default::default();
3636
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
3737

3838
error: field assignment outside of initializer for an instance created with Default::default()
39-
--> $DIR/field_reassign_with_default.rs:79:5
39+
--> $DIR/field_reassign_with_default.rs:81:5
4040
|
4141
LL | a.i = 42;
4242
| ^^^^^^^^^
4343
|
4444
note: consider initializing the variable with `A { i: 42, ..Default::default() }` and removing relevant reassignments
45-
--> $DIR/field_reassign_with_default.rs:78:5
45+
--> $DIR/field_reassign_with_default.rs:80:5
4646
|
4747
LL | let mut a = A::default();
4848
| ^^^^^^^^^^^^^^^^^^^^^^^^^
4949

5050
error: field assignment outside of initializer for an instance created with Default::default()
51-
--> $DIR/field_reassign_with_default.rs:89:5
51+
--> $DIR/field_reassign_with_default.rs:91:5
5252
|
5353
LL | a.i = Default::default();
5454
| ^^^^^^^^^^^^^^^^^^^^^^^^^
5555
|
5656
note: consider initializing the variable with `A::default()` and removing relevant reassignments
57-
--> $DIR/field_reassign_with_default.rs:88:5
57+
--> $DIR/field_reassign_with_default.rs:90:5
5858
|
5959
LL | let mut a: A = Default::default();
6060
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
6161

6262
error: field assignment outside of initializer for an instance created with Default::default()
63-
--> $DIR/field_reassign_with_default.rs:93:5
63+
--> $DIR/field_reassign_with_default.rs:95:5
6464
|
6565
LL | a.i = Default::default();
6666
| ^^^^^^^^^^^^^^^^^^^^^^^^^
6767
|
6868
note: consider initializing the variable with `A { j: 45, ..Default::default() }` and removing relevant reassignments
69-
--> $DIR/field_reassign_with_default.rs:92:5
69+
--> $DIR/field_reassign_with_default.rs:94:5
7070
|
7171
LL | let mut a: A = Default::default();
7272
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

0 commit comments

Comments
 (0)