serde/serde_macros/tests/compile-fail/str_ref_deser.rs
2016-06-13 18:56:45 +02:00

10 lines
231 B
Rust

#![feature(custom_attribute, custom_derive, plugin)]
#![plugin(serde_macros)]
#[derive(Serialize, Deserialize)]
struct Test<'a> {
s: &'a str, //~ ERROR: Serde does not support deserializing fields of type &str
}
fn main() {}