serde/serde_macros/tests/compile-fail/str_ref_deser.rs

10 lines
231 B
Rust
Raw Normal View History

2016-06-13 11:56:45 -05:00
#![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() {}