rust/tests/rustdoc/synthetic_auto/static-region.rs
2024-06-24 11:08:41 +02:00

11 lines
365 B
Rust

pub trait OwnedTrait<'a> {
type Reader;
}
//@ has static_region/struct.Owned.html
//@ has - '//*[@id="synthetic-implementations-list"]//*[@class="impl"]//h3[@class="code-header"]' \
// "impl<T> Send for Owned<T>where <T as OwnedTrait<'static>>::Reader: Send"
pub struct Owned<T> where T: OwnedTrait<'static> {
marker: <T as OwnedTrait<'static>>::Reader,
}