mirror of
https://github.com/pezkuwichain/serde.git
synced 2026-04-23 01:18:02 +00:00
Place compile-fail expected errors on their own line
This commit is contained in:
@@ -12,9 +12,10 @@ extern crate serde_derive;
|
||||
#[derive(Deserialize)]
|
||||
struct Str<'a>(&'a str);
|
||||
|
||||
#[derive(Deserialize)] //~ ERROR: 15:10: 15:21: #[serde(borrow)] may only be used on newtype variants
|
||||
#[derive(Deserialize)]
|
||||
enum Test<'a> {
|
||||
#[serde(borrow)]
|
||||
//~^^^ ERROR: #[serde(borrow)] may only be used on newtype variants
|
||||
S { s: Str<'a> }
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user