serde/test_suite/tests/ui/borrow/duplicate_variant.rs

14 lines
199 B
Rust
Raw Normal View History

#[macro_use]
extern crate serde_derive;
#[derive(Deserialize)]
struct Str<'a>(&'a str);
#[derive(Deserialize)]
enum Test<'a> {
2018-06-02 23:11:42 -05:00
#[serde(borrow)]
S(#[serde(borrow)] Str<'a>),
}
fn main() {}