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

10 lines
134 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 = "zzz")]
2017-04-02 23:42:07 -05:00
s: &'a str,
}
fn main() {}