summaryrefslogtreecommitdiffstats
path: root/tests/rustdoc/synthetic_auto/static-region.rs
blob: 9dc6211ec20b60825c2e8c5ff895c448f5838c55 (plain)
1
2
3
4
5
6
7
8
9
10
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,
}