mirror of
https://github.com/pezkuwichain/serde.git
synced 2026-04-24 08:48:00 +00:00
Place compile-fail expected errors on their own line
This commit is contained in:
@@ -9,10 +9,11 @@
|
||||
#[macro_use]
|
||||
extern crate serde_derive;
|
||||
|
||||
#[derive(Deserialize)] //~ ERROR: 12:10: 12:21: variant `Unit` cannot have both #[serde(deserialize_with)] and #[serde(skip_deserializing)]
|
||||
#[derive(Deserialize)]
|
||||
enum Enum {
|
||||
#[serde(deserialize_with = "deserialize_some_unit_variant")]
|
||||
#[serde(skip_deserializing)]
|
||||
//~^^^^ ERROR: variant `Unit` cannot have both #[serde(deserialize_with)] and #[serde(skip_deserializing)]
|
||||
Unit,
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user