mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-23 07:14:28 +00:00
13 lines
322 B
Rust
13 lines
322 B
Rust
// https://github.com/rust-lang/rust/issues/46380
|
|
#![crate_name="foo"]
|
|
|
|
pub trait PublicTrait<T> {}
|
|
|
|
//@ has foo/struct.PublicStruct.html
|
|
pub struct PublicStruct;
|
|
|
|
//@ !has - '//*[@class="impl"]' 'impl PublicTrait<PrivateStruct> for PublicStruct'
|
|
impl PublicTrait<PrivateStruct> for PublicStruct {}
|
|
|
|
struct PrivateStruct;
|