mirror of
https://github.com/pezkuwichain/serde.git
synced 2026-06-17 16:11:03 +00:00
Update tests to new location of errors
This commit is contained in:
@@ -1,14 +1,14 @@
|
|||||||
#![feature(custom_attribute, custom_derive, plugin)]
|
#![feature(custom_attribute, custom_derive, plugin)]
|
||||||
#![plugin(serde_macros)]
|
#![plugin(serde_macros)]
|
||||||
|
|
||||||
#[derive(Serialize)]
|
#[derive(Serialize)] //~ ERROR: 6 errors:
|
||||||
struct S {
|
struct S {
|
||||||
#[serde(rename(serialize="x"))]
|
#[serde(rename(serialize="x"))]
|
||||||
#[serde(rename(serialize="y"))] //~ ERROR: duplicate serde attribute `rename`
|
#[serde(rename(serialize="y"))] // ERROR: duplicate serde attribute `rename`
|
||||||
a: (),
|
a: (),
|
||||||
|
|
||||||
#[serde(rename(serialize="x"))]
|
#[serde(rename(serialize="x"))]
|
||||||
#[serde(rename="y")] //~ ERROR: duplicate serde attribute `rename`
|
#[serde(rename="y")] // ERROR: duplicate serde attribute `rename`
|
||||||
b: (),
|
b: (),
|
||||||
|
|
||||||
#[serde(rename(serialize="x"))]
|
#[serde(rename(serialize="x"))]
|
||||||
@@ -16,16 +16,16 @@ struct S {
|
|||||||
c: (),
|
c: (),
|
||||||
|
|
||||||
#[serde(rename="x")]
|
#[serde(rename="x")]
|
||||||
#[serde(rename(deserialize="y"))] //~ ERROR: duplicate serde attribute `rename`
|
#[serde(rename(deserialize="y"))] // ERROR: duplicate serde attribute `rename`
|
||||||
d: (),
|
d: (),
|
||||||
|
|
||||||
#[serde(rename(serialize="x", serialize="y"))] //~ ERROR: duplicate serde attribute `rename`
|
#[serde(rename(serialize="x", serialize="y"))] // ERROR: duplicate serde attribute `rename`
|
||||||
e: (),
|
e: (),
|
||||||
|
|
||||||
#[serde(rename="x", serialize="y")] //~ ERROR: unknown serde field attribute `serialize = "y"`
|
#[serde(rename="x", serialize="y")] // ERROR: unknown serde field attribute `serialize`
|
||||||
f: (),
|
f: (),
|
||||||
|
|
||||||
#[serde(rename(serialize="x"), rename(serialize="y"))] //~ ERROR: duplicate serde attribute `rename`
|
#[serde(rename(serialize="x"), rename(serialize="y"))] // ERROR: duplicate serde attribute `rename`
|
||||||
g: (),
|
g: (),
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -3,27 +3,27 @@
|
|||||||
|
|
||||||
extern crate serde;
|
extern crate serde;
|
||||||
|
|
||||||
#[derive(Serialize)]
|
#[derive(Serialize)] //~ unknown serde container attribute `abc`
|
||||||
#[serde(abc="xyz")] //~ unknown serde container attribute `abc = "xyz"`
|
#[serde(abc="xyz")]
|
||||||
struct Foo {
|
struct Foo {
|
||||||
x: u32,
|
x: u32,
|
||||||
}
|
}
|
||||||
|
|
||||||
#[derive(Deserialize)]
|
#[derive(Deserialize)] //~ unknown serde container attribute `abc`
|
||||||
#[serde(abc="xyz")] //~ unknown serde container attribute `abc = "xyz"`
|
#[serde(abc="xyz")]
|
||||||
struct Foo {
|
struct Foo {
|
||||||
x: u32,
|
x: u32,
|
||||||
}
|
}
|
||||||
|
|
||||||
#[derive(Serialize)]
|
#[derive(Serialize)] //~ unknown serde field attribute `abc`
|
||||||
struct Foo {
|
struct Foo {
|
||||||
#[serde(abc="xyz")] //~ unknown serde field attribute `abc = "xyz"`
|
#[serde(abc="xyz")]
|
||||||
x: u32,
|
x: u32,
|
||||||
}
|
}
|
||||||
|
|
||||||
#[derive(Deserialize)]
|
#[derive(Deserialize)] //~ unknown serde field attribute `abc`
|
||||||
struct Foo {
|
struct Foo {
|
||||||
#[serde(abc="xyz")] //~ unknown serde field attribute `abc = "xyz"`
|
#[serde(abc="xyz")]
|
||||||
x: u32,
|
x: u32,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -1,9 +1,9 @@
|
|||||||
#![feature(custom_attribute, custom_derive, plugin)]
|
#![feature(custom_attribute, custom_derive, plugin)]
|
||||||
#![plugin(serde_macros)]
|
#![plugin(serde_macros)]
|
||||||
|
|
||||||
#[derive(Serialize, Deserialize)]
|
#[derive(Serialize, Deserialize)] //~ ERROR: Serde does not support deserializing fields of type &str
|
||||||
struct Test<'a> {
|
struct Test<'a> {
|
||||||
s: &'a str, //~ ERROR: Serde does not support deserializing fields of type &str
|
s: &'a str,
|
||||||
}
|
}
|
||||||
|
|
||||||
fn main() {}
|
fn main() {}
|
||||||
|
|||||||
Reference in New Issue
Block a user