Files
serde/serde_macros/tests/compile-fail/str_ref_deser.rs
T
2016-09-27 00:17:00 -07:00

10 lines
231 B
Rust

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