mirror of
https://github.com/pezkuwichain/serde.git
synced 2026-10-25 21:15:08 +00:00
Place compile-fail expected errors on their own line
This commit is contained in:
67 files changed
+140
-70
No files matched your search
@@ -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