Place compile-fail expected errors on their own line

This commit is contained in:
David Tolnay committed 2018-06-02 22:28:05 -07:00
1 parent 57de28744c
commit a4acc83282
67 files changed
+140 -70

No files matched your search

@@ -21,11 +21,13 @@ mod remote {
}
}
#[derive(Serialize)] //~ ERROR: mismatched types
#[derive(Serialize)]
#[serde(remote = "remote::S")]
struct S {
#[serde(getter = "remote::S::get")]
a: u8, //~^^^^ expected u8, found u16
//~^^^^ ERROR: mismatched types
a: u8,
//~^^^^^^ expected u8, found u16
}
fn main() {}