mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-10-23 00:33:12 +00:00
add test
This commit is contained in:
parent
535147d57f
commit
091cc8dc47
1 changed files with 14 additions and 0 deletions
|
@ -3944,6 +3944,20 @@ fn main() {
|
||||||
_ => {}
|
_ => {}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
"#,
|
||||||
|
);
|
||||||
|
}
|
||||||
|
|
||||||
|
#[test]
|
||||||
|
fn goto_builtin_type() {
|
||||||
|
check(
|
||||||
|
r#"
|
||||||
|
//- /main.rs crate:main deps:std
|
||||||
|
const _: &str$0 = ""; }
|
||||||
|
|
||||||
|
//- /libstd.rs crate:std
|
||||||
|
mod prim_str {}
|
||||||
|
// ^^^^^^^^
|
||||||
"#,
|
"#,
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue