about summary refs log tree commit diff
path: root/src/test/rustdoc/sidebar-link-generation.rs
blob: 76b77b9bcbb6bf3347ff9d293e57b5b16052a2c0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
#![crate_name = "foo"]

// @has foo/struct.SomeStruct.html '//*[@class="sidebar-links"]/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) {}
}