rust/tests/rustdoc/sidebar-link-generation.rs

14 lines
305 B
Rust
Raw Normal View History

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