diff options
Diffstat (limited to 'crates/assists')
-rw-r--r-- | crates/assists/src/handlers/add_lifetime_to_type.rs | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/crates/assists/src/handlers/add_lifetime_to_type.rs b/crates/assists/src/handlers/add_lifetime_to_type.rs index c7af84704..3743858a8 100644 --- a/crates/assists/src/handlers/add_lifetime_to_type.rs +++ b/crates/assists/src/handlers/add_lifetime_to_type.rs | |||
@@ -160,6 +160,12 @@ mod tests { | |||
160 | 160 | ||
161 | check_assist( | 161 | check_assist( |
162 | add_lifetime_to_type, | 162 | add_lifetime_to_type, |
163 | "struct Foo { a: &$0i32, b: usize }", | ||
164 | "struct Foo<'a> { a: &'a i32, b: usize }", | ||
165 | ); | ||
166 | |||
167 | check_assist( | ||
168 | add_lifetime_to_type, | ||
163 | "struct Foo<T>$0 { a: &T, b: usize }", | 169 | "struct Foo<T>$0 { a: &T, b: usize }", |
164 | "struct Foo<'a, T> { a: &'a T, b: usize }", | 170 | "struct Foo<'a, T> { a: &'a T, b: usize }", |
165 | ); | 171 | ); |