mirror of
https://github.com/rust-lang/rust.git
synced 2025-05-14 02:49:40 +00:00
Add assist: add lifetime to type #7200
Signed-off-by: Benjamin Coenen <5719034+bnjjj@users.noreply.github.com>
This commit is contained in:
parent
557cf513fa
commit
35d9944c17
@ -158,6 +158,12 @@ mod tests {
|
||||
"struct Foo<'a> { a: &'a i32, b: &'a usize }",
|
||||
);
|
||||
|
||||
check_assist(
|
||||
add_lifetime_to_type,
|
||||
"struct Foo { a: &$0i32, b: usize }",
|
||||
"struct Foo<'a> { a: &'a i32, b: usize }",
|
||||
);
|
||||
|
||||
check_assist(
|
||||
add_lifetime_to_type,
|
||||
"struct Foo<T>$0 { a: &T, b: usize }",
|
||||
|
Loading…
Reference in New Issue
Block a user