mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-27 04:19:13 +00:00
Fix broken link in intra-doc
This commit is contained in:
parent
2472851ccf
commit
f5b97e52c9
4 changed files with 68 additions and 3 deletions
|
@ -1826,6 +1826,35 @@ pub struct B$0ar
|
|||
"#]],
|
||||
);
|
||||
}
|
||||
#[test]
|
||||
fn test_hover_intra_link_reference_to_trait_method() {
|
||||
check(
|
||||
r#"
|
||||
pub trait Foo {
|
||||
fn buzz() -> usize;
|
||||
}
|
||||
/// [Foo][buzz]
|
||||
///
|
||||
/// [buzz]: Foo::buzz
|
||||
pub struct B$0ar
|
||||
"#,
|
||||
expect
|
||||
"#]],
|
||||
);
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn test_hover_external_url() {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue