summaryrefslogtreecommitdiffstats
path: root/tests/ui/union/union-unsized.rs
diff options
context:
space:
mode:
Diffstat (limited to 'tests/ui/union/union-unsized.rs')
-rw-r--r--tests/ui/union/union-unsized.rs2
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/ui/union/union-unsized.rs b/tests/ui/union/union-unsized.rs
index 8e897d7d3..b95b2e414 100644
--- a/tests/ui/union/union-unsized.rs
+++ b/tests/ui/union/union-unsized.rs
@@ -4,6 +4,7 @@
union U {
a: str,
//~^ ERROR the size for values of type
+ //~| ERROR field must implement `Copy`
b: u8,
}
@@ -12,6 +13,7 @@ union W {
a: u8,
b: str,
//~^ ERROR the size for values of type
+ //~| ERROR field must implement `Copy`
}
fn main() {}