mirror of
https://github.com/pezkuwichain/serde.git
synced 2026-04-23 01:18:02 +00:00
Ui test changes for trybuild 1.0.49
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
error: variant `Newtype` cannot have both #[serde(deserialize_with)] and a field #0 marked with #[serde(skip_deserializing)]
|
||||
--> $DIR/tests/ui/with-variant/skip_de_newtype_field.rs:5:5
|
||||
--> tests/ui/with-variant/skip_de_newtype_field.rs:5:5
|
||||
|
|
||||
5 | / #[serde(deserialize_with = "deserialize_some_newtype_variant")]
|
||||
6 | | Newtype(#[serde(skip_deserializing)] String),
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
error: variant `Struct` cannot have both #[serde(deserialize_with)] and a field `f1` marked with #[serde(skip_deserializing)]
|
||||
--> $DIR/tests/ui/with-variant/skip_de_struct_field.rs:5:5
|
||||
--> tests/ui/with-variant/skip_de_struct_field.rs:5:5
|
||||
|
|
||||
5 | / #[serde(deserialize_with = "deserialize_some_other_variant")]
|
||||
6 | | Struct {
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
error: variant `Tuple` cannot have both #[serde(deserialize_with)] and a field #0 marked with #[serde(skip_deserializing)]
|
||||
--> $DIR/tests/ui/with-variant/skip_de_tuple_field.rs:5:5
|
||||
--> tests/ui/with-variant/skip_de_tuple_field.rs:5:5
|
||||
|
|
||||
5 | / #[serde(deserialize_with = "deserialize_some_other_variant")]
|
||||
6 | | Tuple(#[serde(skip_deserializing)] String, u8),
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
error: variant `Unit` cannot have both #[serde(deserialize_with)] and #[serde(skip_deserializing)]
|
||||
--> $DIR/tests/ui/with-variant/skip_de_whole_variant.rs:5:5
|
||||
--> tests/ui/with-variant/skip_de_whole_variant.rs:5:5
|
||||
|
|
||||
5 | / #[serde(deserialize_with = "deserialize_some_unit_variant")]
|
||||
6 | | #[serde(skip_deserializing)]
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
error: variant `Newtype` cannot have both #[serde(serialize_with)] and a field #0 marked with #[serde(skip_serializing)]
|
||||
--> $DIR/tests/ui/with-variant/skip_ser_newtype_field.rs:5:5
|
||||
--> tests/ui/with-variant/skip_ser_newtype_field.rs:5:5
|
||||
|
|
||||
5 | / #[serde(serialize_with = "serialize_some_newtype_variant")]
|
||||
6 | | Newtype(#[serde(skip_serializing)] String),
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
error: variant `Newtype` cannot have both #[serde(serialize_with)] and a field #0 marked with #[serde(skip_serializing_if)]
|
||||
--> $DIR/tests/ui/with-variant/skip_ser_newtype_field_if.rs:5:5
|
||||
--> tests/ui/with-variant/skip_ser_newtype_field_if.rs:5:5
|
||||
|
|
||||
5 | / #[serde(serialize_with = "serialize_some_newtype_variant")]
|
||||
6 | | Newtype(#[serde(skip_serializing_if = "always")] String),
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
error: variant `Struct` cannot have both #[serde(serialize_with)] and a field `f1` marked with #[serde(skip_serializing)]
|
||||
--> $DIR/tests/ui/with-variant/skip_ser_struct_field.rs:5:5
|
||||
--> tests/ui/with-variant/skip_ser_struct_field.rs:5:5
|
||||
|
|
||||
5 | / #[serde(serialize_with = "serialize_some_other_variant")]
|
||||
6 | | Struct {
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
error: variant `Struct` cannot have both #[serde(serialize_with)] and a field `f1` marked with #[serde(skip_serializing_if)]
|
||||
--> $DIR/tests/ui/with-variant/skip_ser_struct_field_if.rs:5:5
|
||||
--> tests/ui/with-variant/skip_ser_struct_field_if.rs:5:5
|
||||
|
|
||||
5 | / #[serde(serialize_with = "serialize_some_newtype_variant")]
|
||||
6 | | Struct {
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
error: variant `Tuple` cannot have both #[serde(serialize_with)] and a field #0 marked with #[serde(skip_serializing)]
|
||||
--> $DIR/tests/ui/with-variant/skip_ser_tuple_field.rs:5:5
|
||||
--> tests/ui/with-variant/skip_ser_tuple_field.rs:5:5
|
||||
|
|
||||
5 | / #[serde(serialize_with = "serialize_some_other_variant")]
|
||||
6 | | Tuple(#[serde(skip_serializing)] String, u8),
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
error: variant `Tuple` cannot have both #[serde(serialize_with)] and a field #0 marked with #[serde(skip_serializing_if)]
|
||||
--> $DIR/tests/ui/with-variant/skip_ser_tuple_field_if.rs:5:5
|
||||
--> tests/ui/with-variant/skip_ser_tuple_field_if.rs:5:5
|
||||
|
|
||||
5 | / #[serde(serialize_with = "serialize_some_other_variant")]
|
||||
6 | | Tuple(#[serde(skip_serializing_if = "always")] String, u8),
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
error: variant `Unit` cannot have both #[serde(serialize_with)] and #[serde(skip_serializing)]
|
||||
--> $DIR/tests/ui/with-variant/skip_ser_whole_variant.rs:5:5
|
||||
--> tests/ui/with-variant/skip_ser_whole_variant.rs:5:5
|
||||
|
|
||||
5 | / #[serde(serialize_with = "serialize_some_unit_variant")]
|
||||
6 | | #[serde(skip_serializing)]
|
||||
|
||||
Reference in New Issue
Block a user