Update ui tests to 2018 edition

This commit is contained in:
David Tolnay
2018-12-31 21:36:59 -05:00
parent ab3f4971f0
commit 05ab569a80
189 changed files with 401 additions and 490 deletions
@@ -1,5 +1,4 @@
#[macro_use]
extern crate serde_derive;
use serde_derive::Serialize;
#[derive(Serialize)]
#[serde("literal")]
@@ -1,7 +1,7 @@
error: unexpected literal in serde container attribute
--> $DIR/container.rs:5:9
--> $DIR/container.rs:4:9
|
5 | #[serde("literal")]
4 | #[serde("literal")]
| ^^^^^^^^^
error: aborting due to previous error
@@ -1,5 +1,4 @@
#[macro_use]
extern crate serde_derive;
use serde_derive::Serialize;
#[derive(Serialize)]
struct S {
@@ -1,7 +1,7 @@
error: unexpected literal in serde field attribute
--> $DIR/field.rs:6:13
--> $DIR/field.rs:5:13
|
6 | #[serde("literal")]
5 | #[serde("literal")]
| ^^^^^^^^^
error: aborting due to previous error
@@ -1,5 +1,4 @@
#[macro_use]
extern crate serde_derive;
use serde_derive::Serialize;
#[derive(Serialize)]
enum E {
@@ -1,7 +1,7 @@
error: unexpected literal in serde variant attribute
--> $DIR/variant.rs:6:13
--> $DIR/variant.rs:5:13
|
6 | #[serde("literal")]
5 | #[serde("literal")]
| ^^^^^^^^^
error: aborting due to previous error