mirror of
https://github.com/pezkuwichain/serde.git
synced 2026-04-22 21:48:02 +00:00
Fixed a compilefail test for flatten on enums
This commit is contained in:
@@ -10,7 +10,7 @@
|
||||
extern crate serde_derive;
|
||||
|
||||
#[derive(Serialize)] //~ ERROR: proc-macro derive panicked
|
||||
//~^ HELP: #[serde(flatten] is not supported on enums
|
||||
//~^ HELP: unknown serde variant attribute `flatten`
|
||||
enum Foo {
|
||||
#[serde(flatten)]
|
||||
Foo {
|
||||
|
||||
Reference in New Issue
Block a user