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

10 lines
138 B
Rust
Raw Normal View History

2018-12-31 20:36:59 -06:00
use serde_derive::Deserialize;
2017-04-02 23:42:07 -05:00
#[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() {}