rust/tests/rustdoc/public-impl-mention-private-generic-46380-2.rs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

13 lines
322 B
Rust
Raw Normal View History

2024-01-03 21:56:10 +00:00
// https://github.com/rust-lang/rust/issues/46380
#![crate_name="foo"]
pub trait PublicTrait<T> {}
2024-01-03 21:56:10 +00:00
// @has foo/struct.PublicStruct.html
pub struct PublicStruct;
// @!has - '//*[@class="impl"]' 'impl PublicTrait<PrivateStruct> for PublicStruct'
impl PublicTrait<PrivateStruct> for PublicStruct {}
struct PrivateStruct;