mirror of
https://github.com/pezkuwichain/serde.git
synced 2026-04-22 14:57:59 +00:00
Update ui test files
This commit is contained in:
@@ -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,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 {
|
||||
|
||||
Reference in New Issue
Block a user