about summary refs log tree commit diff
path: root/tests/ui/drop/norm-ice-106444.rs
blob: b248bc73bbefa132e6cb0e1aea07eda14753fd05 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
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) };
}