mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-10-02 06:41:48 +00:00
Test for Builtin Type
This commit is contained in:
parent
b74b9797bc
commit
8317c8db1a
2 changed files with 14 additions and 1 deletions
|
@ -119,6 +119,19 @@ fn node_to_def(
|
|||
})
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn external_docs_doc_builtin_type() {
|
||||
check_external_docs(
|
||||
r#"
|
||||
//- /main.rs crate:foo
|
||||
let x: u3$02 = 0;
|
||||
"#,
|
||||
Some(&OsStr::new("/home/user/project")),
|
||||
Some(expect![[r#"https://doc.rust-lang.org/nightly/core/primitive.u32.html"#]]),
|
||||
None,
|
||||
);
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn external_docs_doc_url_crate() {
|
||||
check_external_docs(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue