mirror of
https://github.com/rust-lang/rust.git
synced 2025-04-14 13:06:49 +00:00
parent
f8aeac8a36
commit
cc422cee97
16
tests/ui/drop/norm-ice-106444.rs
Normal file
16
tests/ui/drop/norm-ice-106444.rs
Normal file
@ -0,0 +1,16 @@
|
||||
// issue: rust-lang/rust#106444
|
||||
// ICE failed to normalize
|
||||
//@ compile-flags: -Zmir-opt-level=3
|
||||
//@ check-pass
|
||||
|
||||
#![crate_type="lib"]
|
||||
|
||||
pub trait A {
|
||||
type B;
|
||||
}
|
||||
|
||||
pub struct S<T: A>(T::B);
|
||||
|
||||
pub fn foo<T: A>(p: *mut S<T>) {
|
||||
unsafe { core::ptr::drop_in_place(p) };
|
||||
}
|
Loading…
Reference in New Issue
Block a user