Closed joshlf closed 7 years ago
reproduction:
// -Z mir-opt-level=2 or higher
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>();
}
Compiling
crossbeam
v0.2.10 andsmallvec
v0.4.4 with-Z mir-opt-level=3
, I get the following ICEs:crossbeam
smallvec
Misc