Skip to content

Commit fb01811

Browse files
committed
add regression test for RUST-143222
1 parent 78a6e13 commit fb01811

File tree

2 files changed

+24
-0
lines changed

2 files changed

+24
-0
lines changed
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
pub trait Assoc {
2+
type Ty;
3+
}
4+
5+
pub struct Foo(<Foo as crate::Assoc>::Ty);
6+
7+
const _: () = {
8+
impl crate::Assoc for Foo {
9+
type Ty = Bar;
10+
}
11+
pub struct Bar;
12+
};
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
//@ compile-flags: -Z normalize-docs --document-private-items -Zunstable-options --show-type-layout
2+
//@ aux-build:wrap-unnamable-type.rs
3+
//@ build-aux-docs
4+
5+
#![crate_name = "foo"]
6+
7+
extern crate wrap_unnamable_type as helper;
8+
//extern crate helper;
9+
//@ has 'foo/struct.Foo.html'
10+
//@ !hasraw - '_/struct.Bar.html'
11+
#[doc(inline)]
12+
pub use helper::Foo;

0 commit comments

Comments
 (0)