rust/tests/rustdoc/inline_local/private-reexport-in-public-api-generics-81141.rs
2024-06-24 11:08:41 +02:00

15 lines
354 B
Rust

// https://github.com/rust-lang/rust/issues/81141
#![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)
}