Fix broken link in intra-doc
This commit is contained in:
@@ -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() {
|
||||
|
||||
Reference in New Issue
Block a user