blob: 5c7cd834c2bfc313c8f26766314f99f628048b3d [file] [log] [blame] [edit]
//@ run-pass
//@ compile-flags:-Zmir-opt-level=3
trait Array {
type Item;
}
fn foo<A: Array>() {
let _: *mut A::Item = std::ptr::null_mut();
}
struct Foo;
impl Array for Foo { type Item = i32; }
fn main() {
foo::<Foo>();
}