mirror of
https://github.com/pezkuwichain/serde.git
synced 2026-04-23 00:08:01 +00:00
Update ui tests to 2018 edition
This commit is contained in:
@@ -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,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
|
||||
|
||||
Reference in New Issue
Block a user