More compile-fail tests for remote derive

This commit is contained in:
David Tolnay
2017-04-09 11:11:27 -07:00
parent 9d8987bde8
commit 5ec317a899
4 changed files with 68 additions and 0 deletions
@@ -0,0 +1,17 @@
#[macro_use]
extern crate serde_derive;
mod remote {
pub struct S {
a: u8,
}
}
#[derive(Serialize)] //~ ERROR: proc-macro derive panicked
#[serde(remote = "remote::S")]
struct S {
#[serde(getter = "~~~")] //~^^^ HELP: failed to parse path: "~~~"
a: u8,
}
fn main() {}