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

11 lines
147 B
Rust
Raw Normal View History

2017-04-02 23:42:07 -05:00
#[macro_use]
extern crate serde_derive;
#[derive(Deserialize)]
2017-04-02 23:42:07 -05:00
struct Test<'a> {
2018-06-02 23:11:42 -05:00
#[serde(borrow = "'a + 'a")]
2017-04-02 23:42:07 -05:00
s: &'a str,
}
fn main() {}