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

10 lines
232 B
Rust
Raw Normal View History

2016-09-28 09:55:54 -07:00
#[macro_use]
extern crate serde_derive;
2017-02-08 08:12:32 -08:00
#[derive(Serialize, Deserialize)] //~ ERROR: proc-macro derive panicked
2016-09-28 09:55:54 -07:00
struct Test<'a> {
2016-09-28 12:46:54 -07:00
s: &'a str, //~^^ HELP: Serde does not support deserializing fields of type &str
2016-09-28 09:55:54 -07:00
}
fn main() {}