rust/tests/rustdoc/issue-32890.rs
2023-01-11 09:32:08 +00:00

18 lines
328 B
Rust

// @has issue_32890/struct.Foo.html
pub struct Foo<T>(T);
impl Foo<u8> {
// @has - '//a[@href="#method.pass"]' 'pass'
pub fn pass() {}
}
impl Foo<u16> {
// @has - '//a[@href="#method.pass-1"]' 'pass'
pub fn pass() {}
}
impl Foo<u32> {
// @has - '//a[@href="#method.pass-2"]' 'pass'
pub fn pass() {}
}