about summary refs log tree commit diff
path: root/src/test/ui/consts/dangling-alloc-id-ice.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/test/ui/consts/dangling-alloc-id-ice.rs')
-rw-r--r--src/test/ui/consts/dangling-alloc-id-ice.rs14
1 files changed, 0 insertions, 14 deletions
diff --git a/src/test/ui/consts/dangling-alloc-id-ice.rs b/src/test/ui/consts/dangling-alloc-id-ice.rs
deleted file mode 100644
index d591bfc731c..00000000000
--- a/src/test/ui/consts/dangling-alloc-id-ice.rs
+++ /dev/null
@@ -1,14 +0,0 @@
-// https://github.com/rust-lang/rust/issues/55223
-
-union Foo<'a> {
-    y: &'a (),
-    long_live_the_unit: &'static (),
-}
-
-const FOO: &() = {
-//~^ ERROR encountered dangling pointer in final constant
-    let y = ();
-    unsafe { Foo { y: &y }.long_live_the_unit }
-};
-
-fn main() {}