Derive for borrowed fields

This commit is contained in:
David Tolnay
2017-04-02 21:42:07 -07:00
parent 8c3e72f2c8
commit fb48111e46
12 changed files with 505 additions and 103 deletions
@@ -0,0 +1,10 @@
#[macro_use]
extern crate serde_derive;
#[derive(Deserialize)] //~ ERROR: proc-macro derive panicked
struct Test {
#[serde(borrow)] //~^^ HELP: field `s` has no lifetimes to borrow
s: String,
}
fn main() {}