Improve UI test coverage

With this commit I believe I've covered all `compile_error!`-based
errors.
This commit is contained in:
hcpl
2018-11-30 03:07:31 +02:00
parent 034db9f20f
commit 14a3da9b16
56 changed files with 529 additions and 1 deletions
@@ -0,0 +1,10 @@
#[macro_use]
extern crate serde_derive;
#[derive(Deserialize)]
union Union {
x: u8,
y: (),
}
fn main() {}
@@ -0,0 +1,11 @@
error: Serde does not support derive for unions
--> $DIR/union_de.rs:5:1
|
5 | / union Union {
6 | | x: u8,
7 | | y: (),
8 | | }
| |_^
error: aborting due to previous error
@@ -0,0 +1,10 @@
#[macro_use]
extern crate serde_derive;
#[derive(Deserialize)]
union Union {
x: u8,
y: (),
}
fn main() {}
@@ -0,0 +1,11 @@
error: Serde does not support derive for unions
--> $DIR/union_ser.rs:5:1
|
5 | / union Union {
6 | | x: u8,
7 | | y: (),
8 | | }
| |_^
error: aborting due to previous error