| commit | 091cc8dc471d2b3bf7cb5a369e88da5abdb24fe4 | [log] [tgz] |
|---|---|---|
| author | Ryan Mehri <rmehri01@pm.me> | Mon Sep 08 14:33:25 2025 -0400 |
| committer | Ryan Mehri <rmehri01@pm.me> | Mon Sep 08 14:33:25 2025 -0400 |
| tree | a5732cadc31237764eb969ea4adc036eb89cf259 | |
| parent | 535147d57f1ae868a0df6ef92adf771e29cab7dd [diff] |
add test
diff --git a/crates/ide/src/goto_definition.rs b/crates/ide/src/goto_definition.rs index f768d4b..d50d7f6 100644 --- a/crates/ide/src/goto_definition.rs +++ b/crates/ide/src/goto_definition.rs
@@ -3947,4 +3947,18 @@ "#, ); } + + #[test] + fn goto_builtin_type() { + check( + r#" +//- /main.rs crate:main deps:std +const _: &str$0 = ""; } + +//- /libstd.rs crate:std +mod prim_str {} +// ^^^^^^^^ +"#, + ); + } }