diff options
Diffstat (limited to 'tests/ui/union/union-nonrepresentable.rs')
| -rw-r--r-- | tests/ui/union/union-nonrepresentable.rs | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/ui/union/union-nonrepresentable.rs b/tests/ui/union/union-nonrepresentable.rs new file mode 100644 index 00000000000..4bdf7c6872f --- /dev/null +++ b/tests/ui/union/union-nonrepresentable.rs @@ -0,0 +1,6 @@ +union U { //~ ERROR recursive type `U` has infinite size + a: u8, + b: std::mem::ManuallyDrop<U>, +} + +fn main() {} |
