Ui test changes for trybuild 1.0.49

This commit is contained in:
David Tolnay
2021-10-08 02:46:15 -04:00
parent efbe574209
commit 999c261d11
97 changed files with 104 additions and 104 deletions
+2 -2
View File
@@ -1,11 +1,11 @@
error: #[serde(field_identifier)] and #[serde(variant_identifier)] cannot both be set
--> $DIR/tests/ui/identifier/both.rs:4:9
--> tests/ui/identifier/both.rs:4:9
|
4 | #[serde(field_identifier, variant_identifier)]
| ^^^^^^^^^^^^^^^^
error: #[serde(field_identifier)] and #[serde(variant_identifier)] cannot both be set
--> $DIR/tests/ui/identifier/both.rs:4:27
--> tests/ui/identifier/both.rs:4:27
|
4 | #[serde(field_identifier, variant_identifier)]
| ^^^^^^^^^^^^^^^^^^
@@ -1,5 +1,5 @@
error: #[serde(field_identifier)] can only be used on an enum
--> $DIR/tests/ui/identifier/field_struct.rs:5:1
--> tests/ui/identifier/field_struct.rs:5:1
|
5 | struct S;
| ^^^^^^
@@ -1,5 +1,5 @@
error: #[serde(field_identifier)] may only contain unit variants
--> $DIR/tests/ui/identifier/field_tuple.rs:7:5
--> tests/ui/identifier/field_tuple.rs:7:5
|
7 | B(u8, u8),
| ^^^^^^^^^
@@ -1,5 +1,5 @@
error: `Other` must be the last variant
--> $DIR/tests/ui/identifier/newtype_not_last.rs:7:5
--> tests/ui/identifier/newtype_not_last.rs:7:5
|
7 | Other(String),
| ^^^^^^^^^^^^^
@@ -1,5 +1,5 @@
error: #[serde(other)] must be on a unit variant
--> $DIR/tests/ui/identifier/not_unit.rs:7:5
--> tests/ui/identifier/not_unit.rs:7:5
|
7 | / #[serde(other)]
8 | | Other(u8, u8),
@@ -1,5 +1,5 @@
error: #[serde(other)] must be on the last variant
--> $DIR/tests/ui/identifier/other_not_last.rs:7:5
--> tests/ui/identifier/other_not_last.rs:7:5
|
7 | / #[serde(other)]
8 | | Other,
@@ -1,5 +1,5 @@
error: #[serde(other)] cannot appear on untagged enum
--> $DIR/tests/ui/identifier/other_untagged.rs:6:5
--> tests/ui/identifier/other_untagged.rs:6:5
|
6 | / #[serde(other)]
7 | | Other,
@@ -1,5 +1,5 @@
error: #[serde(other)] may not be used on a variant identifier
--> $DIR/tests/ui/identifier/other_variant.rs:6:5
--> tests/ui/identifier/other_variant.rs:6:5
|
6 | / #[serde(other)]
7 | | Other,
@@ -1,5 +1,5 @@
error: #[serde(variant_identifier)] can only be used on an enum
--> $DIR/tests/ui/identifier/variant_struct.rs:5:1
--> tests/ui/identifier/variant_struct.rs:5:1
|
5 | struct S;
| ^^^^^^
@@ -1,5 +1,5 @@
error: #[serde(variant_identifier)] may only contain unit variants
--> $DIR/tests/ui/identifier/variant_tuple.rs:7:5
--> tests/ui/identifier/variant_tuple.rs:7:5
|
7 | B(u8, u8),
| ^^^^^^^^^