2018-12-31 21:36:59 -05:00
|
|
|
use serde_derive::Deserialize;
|
2017-11-05 11:21:39 -08:00
|
|
|
|
|
|
|
#[derive(Deserialize)]
|
|
|
|
struct Str<'a>(&'a str);
|
|
|
|
|
2018-06-02 22:19:39 -07:00
|
|
|
#[derive(Deserialize)]
|
2017-11-05 11:21:39 -08:00
|
|
|
enum Test<'a> {
|
2018-06-02 21:11:42 -07:00
|
|
|
#[serde(borrow)]
|
2018-06-02 22:30:55 -07:00
|
|
|
S { s: Str<'a> },
|
2017-11-05 11:21:39 -08:00
|
|
|
}
|
|
|
|
|
|
|
|
fn main() {}
|