From db5f73d261413f03e4e3a4a374f8306fe8ae5578 Mon Sep 17 00:00:00 2001 From: Edwin Cheng Date: Sun, 12 Jan 2020 19:24:34 +0800 Subject: Add test --- crates/ra_ide/src/impls.rs | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'crates/ra_ide/src') 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 { ], ); } + + #[test] + fn goto_implementation_to_builtin_derive() { + check_goto( + " + //- /lib.rs + #[derive(Copy)] + struct Foo<|>; + ", + &["impl IMPL_BLOCK FileId(1) [0; 15)"], + ); + } } -- cgit v1.2.3