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(transparent)] requires struct to have at most one transparent field
--> $DIR/at_most_one.rs:4:1
--> $DIR/tests/ui/transparent/at_most_one.rs:4:1
|
4 | / #[serde(transparent)]
5 | | struct S {
@@ -1,5 +1,5 @@
error: #[serde(transparent)] requires at least one field that is neither skipped nor has a default
--> $DIR/de_at_least_one.rs:4:1
--> $DIR/tests/ui/transparent/de_at_least_one.rs:4:1
|
4 | / #[serde(transparent)]
5 | | struct S {
+1 -1
View File
@@ -1,5 +1,5 @@
error: #[serde(transparent)] is not allowed on an enum
--> $DIR/enum.rs:4:1
--> $DIR/tests/ui/transparent/enum.rs:4:1
|
4 | / #[serde(transparent)]
5 | | enum E {}
@@ -1,5 +1,5 @@
error: #[serde(transparent)] requires at least one field that is not skipped
--> $DIR/ser_at_least_one.rs:4:1
--> $DIR/tests/ui/transparent/ser_at_least_one.rs:4:1
|
4 | / #[serde(transparent)]
5 | | struct S {
@@ -1,5 +1,5 @@
error: #[serde(transparent)] is not allowed on a unit struct
--> $DIR/unit_struct.rs:4:1
--> $DIR/tests/ui/transparent/unit_struct.rs:4:1
|
4 | / #[serde(transparent)]
5 | | struct S;
@@ -1,5 +1,5 @@
error: #[serde(transparent)] is not allowed with #[serde(from = "...")]
--> $DIR/with_from.rs:4:1
--> $DIR/tests/ui/transparent/with_from.rs:4:1
|
4 | / #[serde(transparent, from = "u64")]
5 | | struct S {
@@ -1,5 +1,5 @@
error: #[serde(transparent)] is not allowed with #[serde(into = "...")]
--> $DIR/with_into.rs:4:1
--> $DIR/tests/ui/transparent/with_into.rs:4:1
|
4 | / #[serde(transparent, into = "u64")]
5 | | struct S {
@@ -1,5 +1,5 @@
error: #[serde(transparent)] is not allowed with #[serde(try_from = "...")]
--> $DIR/with_try_from.rs:4:1
--> $DIR/tests/ui/transparent/with_try_from.rs:4:1
|
4 | / #[serde(transparent, try_from = "u64")]
5 | | struct S {