Move some compile-fail errors based on proc-macro2 update

This commit is contained in:
David Tolnay 2018-08-28 20:35:49 -07:00
parent 2aab0ce2f6
commit 5b7b8abf9f
No known key found for this signature in database
GPG Key ID: F9BA143B95FF6D82
2 changed files with 3 additions and 3 deletions

View File

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

View File

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