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)]
union Union {
@@ -1,10 +1,10 @@
error: Serde does not support derive for unions
--> $DIR/union_de.rs:5:1
--> $DIR/union_de.rs:4:1
|
5 | / union Union {
6 | | x: u8,
7 | | y: (),
8 | | }
4 | / union Union {
5 | | x: u8,
6 | | y: (),
7 | | }
| |_^
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)]
union Union {
@@ -1,10 +1,10 @@
error: Serde does not support derive for unions
--> $DIR/union_ser.rs:5:1
--> $DIR/union_ser.rs:4:1
|
5 | / union Union {
6 | | x: u8,
7 | | y: (),
8 | | }
4 | / union Union {
5 | | x: u8,
6 | | y: (),
7 | | }
| |_^
error: aborting due to previous error