Add regression test for generics reexport of private import
This commit is contained in:
parent
49ccde0054
commit
95cea621cd
1 changed files with 13 additions and 0 deletions
|
@ -0,0 +1,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)
|
||||||
|
}
|
Loading…
Add table
Reference in a new issue