rust/tests/rustdoc/sidebar-link-generation.rs
2024-06-24 11:08:41 +02:00

14 lines
305 B
Rust

#![crate_name = "foo"]
//@ has foo/struct.SomeStruct.html '//*[@class="sidebar-elems"]//section//li/a[@href="#method.some_fn-1"]' \
// "some_fn"
pub struct SomeStruct<T> { _inner: T }
impl SomeStruct<()> {
pub fn some_fn(&self) {}
}
impl SomeStruct<usize> {
pub fn some_fn(&self) {}
}