diff options
-rw-r--r-- | crates/ra_ide/src/impls.rs | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/crates/ra_ide/src/impls.rs b/crates/ra_ide/src/impls.rs index 9b165ee2a..31195036e 100644 --- a/crates/ra_ide/src/impls.rs +++ b/crates/ra_ide/src/impls.rs | |||
@@ -203,4 +203,16 @@ mod tests { | |||
203 | ], | 203 | ], |
204 | ); | 204 | ); |
205 | } | 205 | } |
206 | |||
207 | #[test] | ||
208 | fn goto_implementation_to_builtin_derive() { | ||
209 | check_goto( | ||
210 | " | ||
211 | //- /lib.rs | ||
212 | #[derive(Copy)] | ||
213 | struct Foo<|>; | ||
214 | ", | ||
215 | &["impl IMPL_BLOCK FileId(1) [0; 15)"], | ||
216 | ); | ||
217 | } | ||
206 | } | 218 | } |