os-rust/tests/rustdoc/disambiguate-anchors-32890.rs

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

20 lines
358 B
Rust
Raw Normal View History

#![crate_name="issue_32890"]
// @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() {}
}