summaryrefslogtreecommitdiffstats
path: root/src/test/ui/consts/const-eval/union_promotion.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/test/ui/consts/const-eval/union_promotion.rs')
-rw-r--r--src/test/ui/consts/const-eval/union_promotion.rs11
1 files changed, 0 insertions, 11 deletions
diff --git a/src/test/ui/consts/const-eval/union_promotion.rs b/src/test/ui/consts/const-eval/union_promotion.rs
deleted file mode 100644
index 18894c45f..000000000
--- a/src/test/ui/consts/const-eval/union_promotion.rs
+++ /dev/null
@@ -1,11 +0,0 @@
-#[repr(C)]
-union Foo {
- a: &'static u32,
- b: usize,
-}
-
-fn main() {
- let x: &'static bool = &unsafe { //~ temporary value dropped while borrowed
- Foo { a: &1 }.b == Foo { a: &2 }.b
- };
-}