2018-12-31 20:36:59 -06:00
|
|
|
use serde_derive::Deserialize;
|
2017-11-05 13:21:39 -06:00
|
|
|
|
|
|
|
#[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(#[serde(borrow)] Str<'a>),
|
2017-11-05 13:21:39 -06:00
|
|
|
}
|
|
|
|
|
|
|
|
fn main() {}
|