mirror of
https://github.com/pezkuwichain/serde.git
synced 2026-04-23 21:08:00 +00:00
Place compile-fail expected errors on their own line
This commit is contained in:
@@ -9,7 +9,8 @@
|
||||
#[macro_use]
|
||||
extern crate serde_derive;
|
||||
|
||||
#[derive(Serialize)] //~ ERROR: 12:10: 12:19: #[serde(flatten)] cannot be used on tuple structs
|
||||
#[derive(Serialize)]
|
||||
struct Foo(u32, #[serde(flatten)] HashMap<String, String>);
|
||||
//~^^ ERROR: #[serde(flatten)] cannot be used on tuple structs
|
||||
|
||||
fn main() {}
|
||||
|
||||
Reference in New Issue
Block a user