serde/serde_derive/tests/compile-fail/unknown-attribute/container.rs
2016-09-28 11:59:25 -07:00

13 lines
242 B
Rust

#![feature(rustc_macro)]
#[macro_use]
extern crate serde_derive;
#[derive(Serialize)] //~ ERROR: custom derive attribute panicked
#[serde(abc="xyz")] // ERROR: unknown serde container attribute `abc`
struct A {
x: u32,
}
fn main() { }