2024-05-21 14:28:30 -05:00
|
|
|
// https://github.com/rust-lang/rust/issues/81141
|
2023-07-10 10:01:20 -05:00
|
|
|
#![crate_name = "foo"]
|
|
|
|
|
|
|
|
use crate::bar::Foo as Alias;
|
|
|
|
|
|
|
|
pub mod bar {
|
|
|
|
pub struct Foo<'a, T>(&'a T);
|
|
|
|
}
|
|
|
|
|
2024-06-21 07:03:08 -05:00
|
|
|
//@ has "foo/fn.foo.html"
|
|
|
|
//@ has - '//*[@class="rust item-decl"]/code' "pub fn foo<'a, T>(f: Foo<'a, T>) -> Foo<'a, usize>"
|
2023-07-10 10:01:20 -05:00
|
|
|
pub fn foo<'a, T>(f: Alias<'a, T>) -> Alias<'a, usize> {
|
|
|
|
Alias(&0)
|
|
|
|
}
|