mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-01 06:51:58 +00:00
14 lines
304 B
Rust
14 lines
304 B
Rust
#![crate_name = "foo"]
|
|
|
|
use crate::bar::Foo as Alias;
|
|
|
|
pub mod bar {
|
|
pub struct Foo<'a, T>(&'a T);
|
|
}
|
|
|
|
// @has "foo/fn.foo.html"
|
|
// @has - '//*[@class="rust item-decl"]/code' "pub fn foo<'a, T>(f: Foo<'a, T>) -> Foo<'a, usize>"
|
|
pub fn foo<'a, T>(f: Alias<'a, T>) -> Alias<'a, usize> {
|
|
Alias(&0)
|
|
}
|