mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-27 09:14:20 +00:00
cc422cee97
Fixes #106444
17 lines
269 B
Rust
17 lines
269 B
Rust
// 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) };
|
|
}
|