mirror of
https://github.com/pezkuwichain/serde.git
synced 2026-04-22 16:08:05 +00:00
Update ui tests to 2018 edition
This commit is contained in:
@@ -1,5 +1,4 @@
|
||||
#[macro_use]
|
||||
extern crate serde_derive;
|
||||
use serde_derive::Serialize;
|
||||
|
||||
#[derive(Serialize)]
|
||||
struct S {
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
error: unknown serde field attribute `serialize`
|
||||
--> $DIR/rename-and-ser.rs:6:27
|
||||
--> $DIR/rename-and-ser.rs:5:27
|
||||
|
|
||||
6 | #[serde(rename = "x", serialize = "y")]
|
||||
5 | #[serde(rename = "x", serialize = "y")]
|
||||
| ^^^^^^^^^
|
||||
|
||||
error: aborting due to previous error
|
||||
|
||||
@@ -1,5 +1,4 @@
|
||||
#[macro_use]
|
||||
extern crate serde_derive;
|
||||
use serde_derive::Serialize;
|
||||
|
||||
#[derive(Serialize)]
|
||||
struct S {
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
error: duplicate serde attribute `rename`
|
||||
--> $DIR/rename-rename-de.rs:7:13
|
||||
--> $DIR/rename-rename-de.rs:6:13
|
||||
|
|
||||
7 | #[serde(rename(deserialize = "y"))]
|
||||
6 | #[serde(rename(deserialize = "y"))]
|
||||
| ^^^^^^
|
||||
|
||||
error: aborting due to previous error
|
||||
|
||||
@@ -1,5 +1,4 @@
|
||||
#[macro_use]
|
||||
extern crate serde_derive;
|
||||
use serde_derive::Serialize;
|
||||
|
||||
#[derive(Serialize)]
|
||||
struct S {
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
error: duplicate serde attribute `rename`
|
||||
--> $DIR/rename-ser-rename-ser.rs:6:38
|
||||
--> $DIR/rename-ser-rename-ser.rs:5:38
|
||||
|
|
||||
6 | #[serde(rename(serialize = "x"), rename(serialize = "y"))]
|
||||
5 | #[serde(rename(serialize = "x"), rename(serialize = "y"))]
|
||||
| ^^^^^^
|
||||
|
||||
error: aborting due to previous error
|
||||
|
||||
@@ -1,5 +1,4 @@
|
||||
#[macro_use]
|
||||
extern crate serde_derive;
|
||||
use serde_derive::Serialize;
|
||||
|
||||
#[derive(Serialize)]
|
||||
struct S {
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
error: duplicate serde attribute `rename`
|
||||
--> $DIR/rename-ser-rename.rs:7:13
|
||||
--> $DIR/rename-ser-rename.rs:6:13
|
||||
|
|
||||
7 | #[serde(rename = "y")]
|
||||
6 | #[serde(rename = "y")]
|
||||
| ^^^^^^
|
||||
|
||||
error: aborting due to previous error
|
||||
|
||||
@@ -1,5 +1,4 @@
|
||||
#[macro_use]
|
||||
extern crate serde_derive;
|
||||
use serde_derive::Serialize;
|
||||
|
||||
#[derive(Serialize)]
|
||||
struct S {
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
error: duplicate serde attribute `rename`
|
||||
--> $DIR/rename-ser-ser.rs:6:37
|
||||
--> $DIR/rename-ser-ser.rs:5:37
|
||||
|
|
||||
6 | #[serde(rename(serialize = "x", serialize = "y"))]
|
||||
5 | #[serde(rename(serialize = "x", serialize = "y"))]
|
||||
| ^^^^^^^^^
|
||||
|
||||
error: aborting due to previous error
|
||||
|
||||
@@ -1,5 +1,4 @@
|
||||
#[macro_use]
|
||||
extern crate serde_derive;
|
||||
use serde_derive::Serialize;
|
||||
|
||||
#[derive(Serialize)]
|
||||
struct S {
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
error: duplicate serde attribute `rename`
|
||||
--> $DIR/two-rename-ser.rs:7:13
|
||||
--> $DIR/two-rename-ser.rs:6:13
|
||||
|
|
||||
7 | #[serde(rename(serialize = "y"))]
|
||||
6 | #[serde(rename(serialize = "y"))]
|
||||
| ^^^^^^
|
||||
|
||||
error: aborting due to previous error
|
||||
|
||||
@@ -1,5 +1,4 @@
|
||||
#[macro_use]
|
||||
extern crate serde_derive;
|
||||
use serde_derive::Serialize;
|
||||
|
||||
#[derive(Serialize)]
|
||||
struct S {
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
error: duplicate serde attribute `serialize_with`
|
||||
--> $DIR/with-and-serialize-with.rs:6:25
|
||||
--> $DIR/with-and-serialize-with.rs:5:25
|
||||
|
|
||||
6 | #[serde(with = "w", serialize_with = "s")]
|
||||
5 | #[serde(with = "w", serialize_with = "s")]
|
||||
| ^^^^^^^^^^^^^^
|
||||
|
||||
error: aborting due to previous error
|
||||
|
||||
Reference in New Issue
Block a user