2 #![allow(unused_variables)]
3 // This code was creating an ICE in the MIR type checker. The reason
4 // is that we are reifying a reference to a function (`foo::<'x>`),
5 // which involves extracting its signature, but we were not
6 // normalizing the signature afterwards. As a result, we sometimes got
7 // errors around the `<u32 as Foo<'x>>::Value`, which can be
8 // normalized to `f64`.
16 impl<'x> Foo<'x> for u32 {
20 struct Providers<'x> {
21 foo: for<'y> fn(x: &'x u32, y: &'y u32) -> <u32 as Foo<'x>>::Value,
24 fn foo<'y, 'x: 'x>(x: &'x u32, y: &'y u32) -> <u32 as Foo<'x>>::Value {