mirror of
https://github.com/pezkuwichain/serde.git
synced 2026-04-25 10:27:56 +00:00
ef5d09e144
Fixes #575
13 lines
267 B
Rust
13 lines
267 B
Rust
#![feature(proc_macro)]
|
|
|
|
#[macro_use]
|
|
extern crate serde_derive;
|
|
|
|
#[derive(Serialize)] //~ ERROR: custom derive attribute panicked
|
|
struct S {
|
|
#[serde(rename(serialize="x", serialize="y"))] //~^^ HELP: duplicate serde attribute `rename`
|
|
x: (),
|
|
}
|
|
|
|
fn main() {}
|