2017-11-05 13:21:39 -06:00
|
|
|
#[macro_use]
|
|
|
|
extern crate serde_derive;
|
|
|
|
|
|
|
|
#[derive(Deserialize)]
|
|
|
|
struct Str<'a>(&'a str);
|
|
|
|
|
2018-06-03 00:19:39 -05:00
|
|
|
#[derive(Deserialize)]
|
2017-11-05 13:21:39 -06:00
|
|
|
enum Test<'a> {
|
2018-06-02 23:11:42 -05:00
|
|
|
#[serde(borrow)]
|
2018-06-03 00:30:55 -05:00
|
|
|
S { s: Str<'a> },
|
2017-11-05 13:21:39 -06:00
|
|
|
}
|
|
|
|
|
|
|
|
fn main() {}
|