Skip to content

Commit 091cc8d

Browse files
committed
add test
1 parent 535147d commit 091cc8d

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

crates/ide/src/goto_definition.rs

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3944,6 +3944,20 @@ fn main() {
39443944
_ => {}
39453945
}
39463946
}
3947+
"#,
3948+
);
3949+
}
3950+
3951+
#[test]
3952+
fn goto_builtin_type() {
3953+
check(
3954+
r#"
3955+
//- /main.rs crate:main deps:std
3956+
const _: &str$0 = ""; }
3957+
3958+
//- /libstd.rs crate:std
3959+
mod prim_str {}
3960+
// ^^^^^^^^
39473961
"#,
39483962
);
39493963
}

0 commit comments

Comments
 (0)