Open
Description
For the following example
fn foo<'a>(x: &'a i32, y: Vec<&i32>) {
- consider changing the type of `y` to `std::vec::Vec<&'a i32>`
y.push(x);
^ this reference must have lifetime 'a
}
can be refined to
fn foo<'a>(x: &'a i32, y: Vec<&i32>) {
---- consider changing this type to `&'a i32`
y.push(x);
^ this reference must have lifetime 'a
}
Underline &i32
instead of the whole type.