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

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

14 lines
305 B
Rust
Raw Normal View History

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