mirror of
https://github.com/pezkuwichain/serde.git
synced 2026-04-22 18:27:54 +00:00
Update ui test files
This commit is contained in:
@@ -1,11 +1,11 @@
|
||||
error: #[serde(field_identifier)] and #[serde(variant_identifier)] cannot both be set
|
||||
--> $DIR/both.rs:4:9
|
||||
--> $DIR/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/both.rs:4:27
|
||||
--> $DIR/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/field_struct.rs:5:1
|
||||
--> $DIR/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/field_tuple.rs:7:5
|
||||
--> $DIR/tests/ui/identifier/field_tuple.rs:7:5
|
||||
|
|
||||
7 | B(u8, u8),
|
||||
| ^^^^^^^^^
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
error: `Other` must be the last variant
|
||||
--> $DIR/newtype_not_last.rs:7:5
|
||||
--> $DIR/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/not_unit.rs:7:5
|
||||
--> $DIR/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/other_not_last.rs:7:5
|
||||
--> $DIR/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/other_untagged.rs:6:5
|
||||
--> $DIR/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/other_variant.rs:6:5
|
||||
--> $DIR/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/variant_struct.rs:5:1
|
||||
--> $DIR/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/variant_tuple.rs:7:5
|
||||
--> $DIR/tests/ui/identifier/variant_tuple.rs:7:5
|
||||
|
|
||||
7 | B(u8, u8),
|
||||
| ^^^^^^^^^
|
||||
|
||||
Reference in New Issue
Block a user