rust/tests/rustdoc/sidebar-link-generation.rs
2023-01-11 09:32:08 +00: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) {}
}