Place compile-fail expected errors on their own line

This commit is contained in:
David Tolnay
2018-06-02 22:19:39 -07:00
parent 57de28744c
commit a4acc83282
67 changed files with 140 additions and 70 deletions
@@ -13,8 +13,10 @@ mod remote {
pub struct S(pub u16);
}
#[derive(Deserialize)] //~ ERROR: mismatched types
#[derive(Deserialize)]
#[serde(remote = "remote::S")]
struct S(u8); //~^^ expected u16, found u8
struct S(u8);
//~^^^ ERROR: mismatched types
//~^^^^ expected u16, found u8
fn main() {}