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

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