diff options
| author | Guillaume Gomez <guillaume.gomez@huawei.com> | 2023-07-10 17:01:20 +0200 |
|---|---|---|
| committer | Guillaume Gomez <guillaume.gomez@huawei.com> | 2023-07-24 17:07:57 +0200 |
| commit | 95cea621cdf701a4dfaa668af78a4e80f4e94f98 (patch) | |
| tree | 2c422ca93f62f828299215d6a8e98d15d282b65e /tests/rustdoc | |
| parent | 49ccde0054f4b6c9be6987a28211b0101613529e (diff) | |
| download | rust-95cea621cdf701a4dfaa668af78a4e80f4e94f98.tar.gz rust-95cea621cdf701a4dfaa668af78a4e80f4e94f98.zip | |
Add regression test for generics reexport of private import
Diffstat (limited to 'tests/rustdoc')
| -rw-r--r-- | tests/rustdoc/issue-81141-private-reexport-in-public-api-generics.rs | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/tests/rustdoc/issue-81141-private-reexport-in-public-api-generics.rs b/tests/rustdoc/issue-81141-private-reexport-in-public-api-generics.rs new file mode 100644 index 00000000000..7e289508628 --- /dev/null +++ b/tests/rustdoc/issue-81141-private-reexport-in-public-api-generics.rs @@ -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) +} |
