Compiletest error messages

This commit is contained in:
David Tolnay 2016-09-28 12:46:54 -07:00
parent 1b6fd5a362
commit b27039d34d
No known key found for this signature in database
GPG Key ID: F9BA143B95FF6D82
10 changed files with 10 additions and 10 deletions

View File

@ -5,7 +5,7 @@ extern crate serde_derive;
#[derive(Serialize)] //~ ERROR: custom derive attribute panicked
struct S {
#[serde(rename="x", serialize="y")] // ERROR: unknown serde field attribute `serialize`
#[serde(rename="x", serialize="y")] //~^^ HELP: unknown serde field attribute `serialize`
x: (),
}

View File

@ -6,7 +6,7 @@ extern crate serde_derive;
#[derive(Serialize)] //~ ERROR: custom derive attribute panicked
struct S {
#[serde(rename="x")]
#[serde(rename(deserialize="y"))] // ERROR: duplicate serde attribute `rename`
#[serde(rename(deserialize="y"))] //~^^^ HELP: duplicate serde attribute `rename`
x: (),
}

View File

@ -5,7 +5,7 @@ extern crate serde_derive;
#[derive(Serialize)] //~ ERROR: custom derive attribute panicked
struct S {
#[serde(rename(serialize="x"), rename(serialize="y"))] // ERROR: duplicate serde attribute `rename`
#[serde(rename(serialize="x"), rename(serialize="y"))] //~^^ HELP: duplicate serde attribute `rename`
x: (),
}

View File

@ -6,7 +6,7 @@ extern crate serde_derive;
#[derive(Serialize)] //~ ERROR: custom derive attribute panicked
struct S {
#[serde(rename(serialize="x"))]
#[serde(rename="y")] // ERROR: duplicate serde attribute `rename`
#[serde(rename="y")] //~^^^ HELP: duplicate serde attribute `rename`
x: (),
}

View File

@ -5,7 +5,7 @@ extern crate serde_derive;
#[derive(Serialize)] //~ ERROR: custom derive attribute panicked
struct S {
#[serde(rename(serialize="x", serialize="y"))] // ERROR: duplicate serde attribute `rename`
#[serde(rename(serialize="x", serialize="y"))] //~^^ HELP: duplicate serde attribute `rename`
x: (),
}

View File

@ -6,7 +6,7 @@ extern crate serde_derive;
#[derive(Serialize)] //~ ERROR: custom derive attribute panicked
struct S {
#[serde(rename(serialize="x"))]
#[serde(rename(serialize="y"))] // ERROR: duplicate serde attribute `rename`
#[serde(rename(serialize="y"))] //~^^^ HELP: duplicate serde attribute `rename`
x: (),
}

View File

@ -5,7 +5,7 @@ extern crate serde_derive;
#[derive(Serialize, Deserialize)] //~ ERROR: custom derive attribute panicked
struct Test<'a> {
s: &'a str, // ERROR: Serde does not support deserializing fields of type &str
s: &'a str, //~^^ HELP: Serde does not support deserializing fields of type &str
}
fn main() {}

View File

@ -4,7 +4,7 @@
extern crate serde_derive;
#[derive(Serialize)] //~ ERROR: custom derive attribute panicked
#[serde(abc="xyz")] // ERROR: unknown serde container attribute `abc`
#[serde(abc="xyz")] //~^ HELP: unknown serde container attribute `abc`
struct A {
x: u32,
}

View File

@ -5,7 +5,7 @@ extern crate serde_derive;
#[derive(Serialize)] //~ ERROR: custom derive attribute panicked
struct C {
#[serde(abc="xyz")] // ERROR: unknown serde field attribute `abc`
#[serde(abc="xyz")] //~^^ HELP: unknown serde field attribute `abc`
x: u32,
}

View File

@ -5,7 +5,7 @@ extern crate serde_derive;
#[derive(Serialize)] //~ ERROR: custom derive attribute panicked
enum E {
#[serde(abc="xyz")] // ERROR: unknown serde variant attribute `abc`
#[serde(abc="xyz")] //~^^ HELP: unknown serde variant attribute `abc`
V,
}