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 -2
View File
@@ -1,5 +1,4 @@
#[macro_use]
extern crate serde_derive;
use serde_derive::Deserialize;
#[derive(Deserialize)]
struct Test<'a> {
@@ -1,7 +1,7 @@
error: failed to parse borrowed lifetimes: "zzz"
--> $DIR/bad_lifetimes.rs:6:22
--> $DIR/bad_lifetimes.rs:5:22
|
6 | #[serde(borrow = "zzz")]
5 | #[serde(borrow = "zzz")]
| ^^^^^
error: aborting due to previous error
@@ -1,5 +1,4 @@
#[macro_use]
extern crate serde_derive;
use serde_derive::Deserialize;
#[derive(Deserialize)]
struct Test<'a> {
@@ -1,7 +1,7 @@
error: duplicate borrowed lifetime `'a`
--> $DIR/duplicate_lifetime.rs:6:22
--> $DIR/duplicate_lifetime.rs:5:22
|
6 | #[serde(borrow = "'a + 'a")]
5 | #[serde(borrow = "'a + 'a")]
| ^^^^^^^^^
error: aborting due to previous error
@@ -1,5 +1,4 @@
#[macro_use]
extern crate serde_derive;
use serde_derive::Deserialize;
#[derive(Deserialize)]
struct Str<'a>(&'a str);
@@ -1,7 +1,7 @@
error: duplicate serde attribute `borrow`
--> $DIR/duplicate_variant.rs:9:13
--> $DIR/duplicate_variant.rs:8:13
|
9 | #[serde(borrow)]
8 | #[serde(borrow)]
| ^^^^^^
error: aborting due to previous error
@@ -1,5 +1,4 @@
#[macro_use]
extern crate serde_derive;
use serde_derive::Deserialize;
#[derive(Deserialize)]
struct Test<'a> {
@@ -1,7 +1,7 @@
error: at least one lifetime must be borrowed
--> $DIR/empty_lifetimes.rs:6:22
--> $DIR/empty_lifetimes.rs:5:22
|
6 | #[serde(borrow = "")]
5 | #[serde(borrow = "")]
| ^^
error: aborting due to previous error
+1 -2
View File
@@ -1,5 +1,4 @@
#[macro_use]
extern crate serde_derive;
use serde_derive::Deserialize;
#[derive(Deserialize)]
struct Test {
@@ -1,8 +1,8 @@
error: field `s` has no lifetimes to borrow
--> $DIR/no_lifetimes.rs:6:5
--> $DIR/no_lifetimes.rs:5:5
|
6 | / #[serde(borrow)]
7 | | s: String,
5 | / #[serde(borrow)]
6 | | s: String,
| |_____________^
error: aborting due to previous error
+1 -2
View File
@@ -1,5 +1,4 @@
#[macro_use]
extern crate serde_derive;
use serde_derive::Deserialize;
#[derive(Deserialize)]
struct Str<'a>(&'a str);
@@ -1,9 +1,9 @@
error: #[serde(borrow)] may only be used on newtype variants
--> $DIR/struct_variant.rs:9:5
|
9 | / #[serde(borrow)]
10 | | S { s: Str<'a> },
| |____________________^
--> $DIR/struct_variant.rs:8:5
|
8 | / #[serde(borrow)]
9 | | S { s: Str<'a> },
| |____________________^
error: aborting due to previous error
+1 -2
View File
@@ -1,5 +1,4 @@
#[macro_use]
extern crate serde_derive;
use serde_derive::Deserialize;
#[derive(Deserialize)]
struct Test<'a> {
@@ -1,8 +1,8 @@
error: field `s` does not have lifetime 'b
--> $DIR/wrong_lifetime.rs:6:5
--> $DIR/wrong_lifetime.rs:5:5
|
6 | / #[serde(borrow = "'b")]
7 | | s: &'a str,
5 | / #[serde(borrow = "'b")]
6 | | s: &'a str,
| |______________^
error: aborting due to previous error