aboutsummaryrefslogtreecommitdiff
path: root/crates/ra_ide/src
diff options
context:
space:
mode:
authorEdwin Cheng <[email protected]>2020-01-12 11:24:34 +0000
committerEdwin Cheng <[email protected]>2020-01-12 11:24:34 +0000
commitdb5f73d261413f03e4e3a4a374f8306fe8ae5578 (patch)
treefabfede84c60876db9bc983d7294239bc9703d1f /crates/ra_ide/src
parentd7be1a437239770552199028259639e6dfa8a664 (diff)
Add test
Diffstat (limited to 'crates/ra_ide/src')
-rw-r--r--crates/ra_ide/src/impls.rs12
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}