rust/tests/ui/mir/mir-inlining/ice-issue-45493.rs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

18 lines
237 B
Rust
Raw Normal View History

// 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>();
}