// issue:113951 trait Foo<'x, T> {} trait RefFoo { fn ref_foo(&self); } impl RefFoo for T where for<'a> &'a mut Vec<&'a u32>: Foo<'static, T>, { fn ref_foo(&self) {} } fn coerce_lifetime2() { >::ref_foo(unknown); //~^ ERROR cannot find value `unknown` in this scope //~| ERROR the trait bound `for<'a> &'a mut Vec<&'a u32>: Foo<'static, i32>` is not satisfied } fn main() {}