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)]
|
||||
#[serde(abc = "xyz")]
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
error: unknown serde container attribute `abc`
|
||||
--> $DIR/container.rs:5:9
|
||||
--> $DIR/container.rs:4:9
|
||||
|
|
||||
5 | #[serde(abc = "xyz")]
|
||||
4 | #[serde(abc = "xyz")]
|
||||
| ^^^
|
||||
|
||||
error: aborting due to previous error
|
||||
|
||||
@@ -1,5 +1,4 @@
|
||||
#[macro_use]
|
||||
extern crate serde_derive;
|
||||
use serde_derive::Serialize;
|
||||
|
||||
#[derive(Serialize)]
|
||||
struct C {
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
error: unknown serde field attribute `abc`
|
||||
--> $DIR/field.rs:6:13
|
||||
--> $DIR/field.rs:5:13
|
||||
|
|
||||
6 | #[serde(abc = "xyz")]
|
||||
5 | #[serde(abc = "xyz")]
|
||||
| ^^^
|
||||
|
||||
error: aborting due to previous error
|
||||
|
||||
@@ -1,5 +1,4 @@
|
||||
#[macro_use]
|
||||
extern crate serde_derive;
|
||||
use serde_derive::Serialize;
|
||||
|
||||
#[derive(Serialize)]
|
||||
enum E {
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
error: unknown serde variant attribute `abc`
|
||||
--> $DIR/variant.rs:6:13
|
||||
--> $DIR/variant.rs:5:13
|
||||
|
|
||||
6 | #[serde(abc = "xyz")]
|
||||
5 | #[serde(abc = "xyz")]
|
||||
| ^^^
|
||||
|
||||
error: aborting due to previous error
|
||||
|
||||
Reference in New Issue
Block a user