1 // This test should compile, as the lifetimes
2 // in matches don't really matter.
4 // We currently use contravariance when checking the
11 impl<'a, T> Foo<'a> for T {
12 const C: &'a u32 = &22;
15 fn foo<'a>(x: &'static u32) {
17 <() as Foo<'a>>::C => { }
18 //~^ ERROR lifetime may not live long enough