about summary refs log tree commit diff
path: root/tests/crashes
diff options
context:
space:
mode:
authorGurinder Singh <frederick.the.fool@gmail.com>2024-04-22 09:12:36 +0530
committerGurinder Singh <frederick.the.fool@gmail.com>2024-04-22 09:12:36 +0530
commit06cd79bb5beee0b240194a80fa8930ca620ea0f5 (patch)
tree1473b67cbddcef1dc7272d100efd1b1035cd1cf8 /tests/crashes
parentfb898629a26e4acec59c928ce3ec00a62675d1cc (diff)
downloadrust-06cd79bb5beee0b240194a80fa8930ca620ea0f5.tar.gz
rust-06cd79bb5beee0b240194a80fa8930ca620ea0f5.zip
Fix ICE when ADT tail has type error
Diffstat (limited to 'tests/crashes')
-rw-r--r--tests/crashes/124031.rs17
1 files changed, 0 insertions, 17 deletions
diff --git a/tests/crashes/124031.rs b/tests/crashes/124031.rs
deleted file mode 100644
index bdc66fbafe4..00000000000
--- a/tests/crashes/124031.rs
+++ /dev/null
@@ -1,17 +0,0 @@
-//@ known-bug: #124031
-
-trait Trait {
-    type RefTarget;
-}
-
-impl Trait for () {}
-
-struct Other {
-    data: <() as Trait>::RefTarget,
-}
-
-fn main() {
-    unsafe {
-        std::mem::transmute::<Option<()>, Option<&Other>>(None);
-    }
-}