mirror of
https://github.com/serde-rs/serde.git
synced 2025-10-01 23:11:18 +00:00

There is a new fallback as of nightly-2018-12-29 that makes these emit a new error unrelated to Serde.
10 lines
168 B
Rust
10 lines
168 B
Rust
#[macro_use]
|
|
extern crate serde_derive;
|
|
|
|
use std::collections::HashMap;
|
|
|
|
#[derive(Serialize)]
|
|
struct Foo(u32, #[serde(flatten)] HashMap<String, String>);
|
|
|
|
fn main() {}
|