Skip to content

Commit 169643d

Browse files
committed
Update tests.
1 parent 876c42d commit 169643d

12 files changed

+16
-16
lines changed

src/test/ui/did_you_mean/issue-42599_available_fields_note.stderr

+2-2
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,13 @@ error[E0560]: struct `submodule::Demo` has no field named `inocently_mispellable
22
--> $DIR/issue-42599_available_fields_note.rs:26:39
33
|
44
26 | Self { secret_integer: 2, inocently_mispellable: () }
5-
| ^^^^^^^^^^^^^^^^^^^^^^ field does not exist - did you mean `innocently_misspellable`?
5+
| ^^^^^^^^^^^^^^^^^^^^^ field does not exist - did you mean `innocently_misspellable`?
66

77
error[E0560]: struct `submodule::Demo` has no field named `egregiously_nonexistent_field`
88
--> $DIR/issue-42599_available_fields_note.rs:31:39
99
|
1010
31 | Self { secret_integer: 3, egregiously_nonexistent_field: () }
11-
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ `submodule::Demo` does not have this field
11+
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ `submodule::Demo` does not have this field
1212
|
1313
= note: available fields are: `favorite_integer`, `secret_integer`, `innocently_misspellable`, `another_field`, `yet_another_field` ... and 2 others
1414

src/test/ui/error-codes/E0062.stderr

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ error[E0062]: field `x` specified more than once
44
17 | x: 0,
55
| ---- first use of `x`
66
18 | x: 0,
7-
| ^^ used more than once
7+
| ^ used more than once
88

99
error: aborting due to previous error
1010

src/test/ui/error-codes/E0559.stderr

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ error[E0559]: variant `Field::Fool` has no field named `joke`
22
--> $DIR/E0559.rs:16:27
33
|
44
16 | let s = Field::Fool { joke: 0 };
5-
| ^^^^^ `Field::Fool` does not have this field
5+
| ^^^^ `Field::Fool` does not have this field
66
|
77
= note: available fields are: `x`
88

src/test/ui/error-codes/E0560.stderr

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ error[E0560]: struct `Simba` has no field named `father`
22
--> $DIR/E0560.rs:16:32
33
|
44
16 | let s = Simba { mother: 1, father: 0 };
5-
| ^^^^^^^ `Simba` does not have this field
5+
| ^^^^^^ `Simba` does not have this field
66
|
77
= note: available fields are: `mother`
88

src/test/ui/issue-19922.stderr

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ error[E0559]: variant `Homura::Akemi` has no field named `kaname`
22
--> $DIR/issue-19922.rs:16:34
33
|
44
16 | let homura = Homura::Akemi { kaname: () };
5-
| ^^^^^^^ `Homura::Akemi` does not have this field
5+
| ^^^^^^ `Homura::Akemi` does not have this field
66
|
77
= note: available fields are: `madoka`
88

src/test/ui/numeric-fields.stderr

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ error[E0560]: struct `S` has no field named `0b1`
22
--> $DIR/numeric-fields.rs:14:15
33
|
44
14 | let s = S{0b1: 10, 0: 11};
5-
| ^^^^ `S` does not have this field
5+
| ^^^ `S` does not have this field
66
|
77
= note: available fields are: `0`, `1`
88

src/test/ui/struct-fields-hints-no-dupe.stderr

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ error[E0560]: struct `A` has no field named `bar`
22
--> $DIR/struct-fields-hints-no-dupe.rs:20:9
33
|
44
20 | bar : 42,
5-
| ^^^^^ field does not exist - did you mean `barr`?
5+
| ^^^ field does not exist - did you mean `barr`?
66

77
error: aborting due to previous error
88

src/test/ui/struct-fields-hints.stderr

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ error[E0560]: struct `A` has no field named `bar`
22
--> $DIR/struct-fields-hints.rs:20:9
33
|
44
20 | bar : 42,
5-
| ^^^^^ field does not exist - did you mean `car`?
5+
| ^^^ field does not exist - did you mean `car`?
66

77
error: aborting due to previous error
88

src/test/ui/struct-fields-too-many.stderr

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ error[E0560]: struct `BuildData` has no field named `bar`
22
--> $DIR/struct-fields-too-many.rs:18:9
33
|
44
18 | bar: 0
5-
| ^^^^ `BuildData` does not have this field
5+
| ^^^ `BuildData` does not have this field
66
|
77
= note: available fields are: `foo`
88

src/test/ui/suggest-private-fields.stderr

+4-4
Original file line numberDiff line numberDiff line change
@@ -2,27 +2,27 @@ error[E0560]: struct `xc::B` has no field named `aa`
22
--> $DIR/suggest-private-fields.rs:25:9
33
|
44
25 | aa: 20,
5-
| ^^^ field does not exist - did you mean `a`?
5+
| ^^ field does not exist - did you mean `a`?
66

77
error[E0560]: struct `xc::B` has no field named `bb`
88
--> $DIR/suggest-private-fields.rs:27:9
99
|
1010
27 | bb: 20,
11-
| ^^^ `xc::B` does not have this field
11+
| ^^ `xc::B` does not have this field
1212
|
1313
= note: available fields are: `a`
1414

1515
error[E0560]: struct `A` has no field named `aa`
1616
--> $DIR/suggest-private-fields.rs:32:9
1717
|
1818
32 | aa: 20,
19-
| ^^^ field does not exist - did you mean `a`?
19+
| ^^ field does not exist - did you mean `a`?
2020

2121
error[E0560]: struct `A` has no field named `bb`
2222
--> $DIR/suggest-private-fields.rs:34:9
2323
|
2424
34 | bb: 20,
25-
| ^^^ field does not exist - did you mean `b`?
25+
| ^^ field does not exist - did you mean `b`?
2626

2727
error: aborting due to 4 previous errors
2828

src/test/ui/union/union-fields-2.stderr

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ error[E0560]: union `U` has no field named `c`
1414
--> $DIR/union-fields-2.rs:20:29
1515
|
1616
20 | let u = U { a: 0, b: 1, c: 2 }; //~ ERROR union expressions should have exactly one field
17-
| ^^ `U` does not have this field
17+
| ^ `U` does not have this field
1818
|
1919
= note: available fields are: `a`, `b`
2020

src/test/ui/union/union-suggest-field.stderr

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ error[E0560]: union `U` has no field named `principle`
22
--> $DIR/union-suggest-field.rs:20:17
33
|
44
20 | let u = U { principle: 0 };
5-
| ^^^^^^^^^^ field does not exist - did you mean `principal`?
5+
| ^^^^^^^^^ field does not exist - did you mean `principal`?
66

77
error[E0609]: no field `principial` on type `U`
88
--> $DIR/union-suggest-field.rs:22:15

0 commit comments

Comments
 (0)