Duplicate error messages have been fixed

This commit is contained in:
David Tolnay 2017-10-27 21:08:41 -04:00
parent e198afb0c1
commit aa03fd5d1a
No known key found for this signature in database
GPG Key ID: F9BA143B95FF6D82
2 changed files with 2 additions and 3 deletions

View File

@ -16,7 +16,7 @@ mod remote {
}
}
#[derive(Serialize, Deserialize)] //~ ERROR: missing field `b` in initializer of `remote::S`
#[derive(Serialize, Deserialize)]
#[serde(remote = "remote::S")]
struct S {
a: u8, //~^^^ ERROR: missing field `b` in initializer of `remote::S`

View File

@ -19,8 +19,7 @@ mod remote {
#[serde(remote = "remote::S")]
struct S {
//~^^^ ERROR: struct `remote::S` has no field named `b`
//~^^^^ ERROR: struct `remote::S` has no field named `b`
b: u8, //~^^^^^ ERROR: no field `b` on type `&remote::S`
b: u8, //~^^^^ ERROR: no field `b` on type `&remote::S`
}
fn main() {}