mirror of
https://github.com/pezkuwichain/serde.git
synced 2026-11-14 03:17:06 +00:00
Add compile-fail test for the with attribute
This commit is contained in:
1 file changed
+10
@@ -0,0 +1,10 @@
|
|||||||
|
#[macro_use]
|
||||||
|
extern crate serde_derive;
|
||||||
|
|
||||||
|
#[derive(Serialize)] //~ ERROR: proc-macro derive panicked
|
||||||
|
struct S {
|
||||||
|
#[serde(with = "w", serialize_with = "s")] //~^^ HELP: duplicate serde attribute `serialize_with`
|
||||||
|
x: (),
|
||||||
|
}
|
||||||
|
|
||||||
|
fn main() {}
|
||||||
Reference in new issue
Block a user