mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-22 14:55:26 +00:00
14 lines
305 B
Rust
14 lines
305 B
Rust
#![crate_name = "foo"]
|
|
|
|
// @has foo/struct.SomeStruct.html '//*[@class="sidebar-elems"]//section//li/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) {}
|
|
}
|