Skip to content

Commit 95cea62

Browse files
Add regression test for generics reexport of private import
1 parent 49ccde0 commit 95cea62

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
#![crate_name = "foo"]
2+
3+
use crate::bar::Foo as Alias;
4+
5+
pub mod bar {
6+
pub struct Foo<'a, T>(&'a T);
7+
}
8+
9+
// @has "foo/fn.foo.html"
10+
// @has - '//*[@class="rust item-decl"]/code' "pub fn foo<'a, T>(f: Foo<'a, T>) -> Foo<'a, usize>"
11+
pub fn foo<'a, T>(f: Alias<'a, T>) -> Alias<'a, usize> {
12+
Alias(&0)
13+
}

0 commit comments

Comments
 (0)