We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ec01cbf commit 0b797dfCopy full SHA for 0b797df
tests/ui/drop/norm-ice-106444.rs
@@ -0,0 +1,16 @@
1
+// issue: rust-lang/rust#106444
2
+// ICE failed to normalize
3
+//@ compile-flags: -Zmir-opt-level=3
4
+//@ check-pass
5
+
6
+#![crate_type="lib"]
7
8
+pub trait A {
9
+ type B;
10
+}
11
12
+pub struct S<T: A>(T::B);
13
14
+pub fn foo<T: A>(p: *mut S<T>) {
15
+ unsafe { core::ptr::drop_in_place(p) };
16
0 commit comments