mirror of
https://github.com/pezkuwichain/serde.git
synced 2026-11-09 17:57:06 +00:00
Update tests and use quote! macro
This commit is contained in:
1 parent
993710eb16
commit
05e931b9a5
63 files changed
+105
-126
No files matched your search
@@ -12,9 +12,9 @@ extern crate serde_derive;
|
||||
#[derive(Deserialize)]
|
||||
struct Str<'a>(&'a str);
|
||||
|
||||
#[derive(Deserialize)] //~ ERROR: proc-macro derive panicked
|
||||
#[derive(Deserialize)] //~ ERROR: 15:10: 15:21: duplicate serde attribute `borrow`
|
||||
enum Test<'a> {
|
||||
#[serde(borrow)] //~^^ HELP: duplicate serde attribute `borrow`
|
||||
#[serde(borrow)]
|
||||
S(#[serde(borrow)] Str<'a>)
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user