mirror of
https://github.com/pezkuwichain/serde.git
synced 2026-04-23 04:48:01 +00:00
Place compile-fail expected errors on their own line
This commit is contained in:
@@ -9,9 +9,10 @@
|
||||
#[macro_use]
|
||||
extern crate serde_derive;
|
||||
|
||||
#[derive(Serialize)] //~ ERROR: 12:10: 12:19: unknown serde field attribute `serialize`
|
||||
#[derive(Serialize)]
|
||||
struct S {
|
||||
#[serde(rename="x", serialize="y")]
|
||||
//~^^^ ERROR: unknown serde field attribute `serialize`
|
||||
x: (),
|
||||
}
|
||||
|
||||
|
||||
@@ -9,10 +9,11 @@
|
||||
#[macro_use]
|
||||
extern crate serde_derive;
|
||||
|
||||
#[derive(Serialize)] //~ ERROR: 12:10: 12:19: duplicate serde attribute `rename`
|
||||
#[derive(Serialize)]
|
||||
struct S {
|
||||
#[serde(rename="x")]
|
||||
#[serde(rename(deserialize="y"))]
|
||||
//~^^^^ ERROR: duplicate serde attribute `rename`
|
||||
x: (),
|
||||
}
|
||||
|
||||
|
||||
@@ -9,9 +9,10 @@
|
||||
#[macro_use]
|
||||
extern crate serde_derive;
|
||||
|
||||
#[derive(Serialize)] //~ ERROR: 12:10: 12:19: duplicate serde attribute `rename`
|
||||
#[derive(Serialize)]
|
||||
struct S {
|
||||
#[serde(rename(serialize="x"), rename(serialize="y"))]
|
||||
//~^^^ ERROR: duplicate serde attribute `rename`
|
||||
x: (),
|
||||
}
|
||||
|
||||
|
||||
@@ -9,10 +9,11 @@
|
||||
#[macro_use]
|
||||
extern crate serde_derive;
|
||||
|
||||
#[derive(Serialize)] //~ ERROR: 12:10: 12:19: duplicate serde attribute `rename`
|
||||
#[derive(Serialize)]
|
||||
struct S {
|
||||
#[serde(rename(serialize="x"))]
|
||||
#[serde(rename="y")]
|
||||
//~^^^^ ERROR: duplicate serde attribute `rename`
|
||||
x: (),
|
||||
}
|
||||
|
||||
|
||||
@@ -9,9 +9,10 @@
|
||||
#[macro_use]
|
||||
extern crate serde_derive;
|
||||
|
||||
#[derive(Serialize)] //~ ERROR: 12:10: 12:19: duplicate serde attribute `rename`
|
||||
#[derive(Serialize)]
|
||||
struct S {
|
||||
#[serde(rename(serialize="x", serialize="y"))]
|
||||
//~^^^ ERROR: duplicate serde attribute `rename`
|
||||
x: (),
|
||||
}
|
||||
|
||||
|
||||
@@ -9,10 +9,11 @@
|
||||
#[macro_use]
|
||||
extern crate serde_derive;
|
||||
|
||||
#[derive(Serialize)] //~ ERROR: 12:10: 12:19: duplicate serde attribute `rename`
|
||||
#[derive(Serialize)]
|
||||
struct S {
|
||||
#[serde(rename(serialize="x"))]
|
||||
#[serde(rename(serialize="y"))]
|
||||
//~^^^^ ERROR: duplicate serde attribute `rename`
|
||||
x: (),
|
||||
}
|
||||
|
||||
|
||||
@@ -9,9 +9,10 @@
|
||||
#[macro_use]
|
||||
extern crate serde_derive;
|
||||
|
||||
#[derive(Serialize)] //~ ERROR: 12:10: 12:19: duplicate serde attribute `serialize_with`
|
||||
#[derive(Serialize)]
|
||||
struct S {
|
||||
#[serde(with = "w", serialize_with = "s")]
|
||||
//~^^^ ERROR: duplicate serde attribute `serialize_with`
|
||||
x: (),
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user