Update ui test files

This commit is contained in:
David Tolnay
2021-10-07 00:56:29 -04:00
parent 33b2677384
commit efbe574209
96 changed files with 103 additions and 103 deletions
@@ -1,5 +1,5 @@
error: #[serde(tag = "...", content = "...")] must be used together
--> $DIR/content-no-tag.rs:4:9
--> $DIR/tests/ui/enum-representation/content-no-tag.rs:4:9
|
4 | #[serde(content = "c")]
| ^^^^^^^
@@ -1,5 +1,5 @@
error: #[serde(tag = "...")] cannot be used with tuple variants
--> $DIR/internal-tuple-variant.rs:6:5
--> $DIR/tests/ui/enum-representation/internal-tuple-variant.rs:6:5
|
6 | Tuple(u8, u8),
| ^^^^^^^^^^^^^
@@ -1,17 +1,17 @@
error: untagged enum cannot have #[serde(tag = "...", content = "...")]
--> $DIR/untagged-and-adjacent.rs:4:9
--> $DIR/tests/ui/enum-representation/untagged-and-adjacent.rs:4:9
|
4 | #[serde(untagged)]
| ^^^^^^^^
error: untagged enum cannot have #[serde(tag = "...", content = "...")]
--> $DIR/untagged-and-adjacent.rs:5:9
--> $DIR/tests/ui/enum-representation/untagged-and-adjacent.rs:5:9
|
5 | #[serde(tag = "t", content = "c")]
| ^^^
error: untagged enum cannot have #[serde(tag = "...", content = "...")]
--> $DIR/untagged-and-adjacent.rs:5:20
--> $DIR/tests/ui/enum-representation/untagged-and-adjacent.rs:5:20
|
5 | #[serde(tag = "t", content = "c")]
| ^^^^^^^
@@ -1,11 +1,11 @@
error: untagged enum cannot have #[serde(content = "...")]
--> $DIR/untagged-and-content.rs:4:9
--> $DIR/tests/ui/enum-representation/untagged-and-content.rs:4:9
|
4 | #[serde(untagged)]
| ^^^^^^^^
error: untagged enum cannot have #[serde(content = "...")]
--> $DIR/untagged-and-content.rs:5:9
--> $DIR/tests/ui/enum-representation/untagged-and-content.rs:5:9
|
5 | #[serde(content = "c")]
| ^^^^^^^
@@ -1,11 +1,11 @@
error: enum cannot be both untagged and internally tagged
--> $DIR/untagged-and-internal.rs:4:9
--> $DIR/tests/ui/enum-representation/untagged-and-internal.rs:4:9
|
4 | #[serde(untagged)]
| ^^^^^^^^
error: enum cannot be both untagged and internally tagged
--> $DIR/untagged-and-internal.rs:5:9
--> $DIR/tests/ui/enum-representation/untagged-and-internal.rs:5:9
|
5 | #[serde(tag = "type")]
| ^^^
@@ -1,5 +1,5 @@
error: #[serde(untagged)] can only be used on enums
--> $DIR/untagged-struct.rs:5:1
--> $DIR/tests/ui/enum-representation/untagged-struct.rs:5:1
|
5 | struct S;
| ^^^^^^