serde/test_suite/tests/ui/borrow/duplicate_variant.rs
2018-12-31 21:38:13 -05:00

13 lines
190 B
Rust

use serde_derive::Deserialize;
#[derive(Deserialize)]
struct Str<'a>(&'a str);
#[derive(Deserialize)]
enum Test<'a> {
#[serde(borrow)]
S(#[serde(borrow)] Str<'a>),
}
fn main() {}