struct Ref<'a, T: 'a> { data: &'a T } fn foo<'a>(x: Ref, y: &mut Vec>) { y.push(x); //~ ERROR explicit lifetime } fn main() { }