rust/tests/rustdoc/public-impl-mention-private-generic-46380-2.rs
2024-06-24 11:08:41 +02:00

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;