blob: 7e289508628f535dee063036fdc2146cd8569c21 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
#![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)
}
|