mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-23 23:34:48 +00:00
21 lines
408 B
Rust
21 lines
408 B
Rust
// https://github.com/rust-lang/rust/issues/32890
|
|
#![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() {}
|
|
}
|