Skip to content

Commit db5f73d

Browse files
committed
Add test
1 parent d7be1a4 commit db5f73d

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

crates/ra_ide/src/impls.rs

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -203,4 +203,16 @@ mod tests {
203203
],
204204
);
205205
}
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+
}
206218
}

0 commit comments

Comments
 (0)