]> git.lizzy.rs Git - rust.git/blob - tests/rustdoc/issue-51236.rs
Rollup merge of #107662 - cjgillot:copy-projection, r=oli-obk
[rust.git] / tests / rustdoc / issue-51236.rs
1 use std::marker::PhantomData;
2
3 pub mod traits {
4     pub trait Owned<'a> {
5         type Reader;
6     }
7 }
8
9 // @has issue_51236/struct.Owned.html
10 // @has - '//*[@id="synthetic-implementations-list"]//*[@class="impl"]//h3[@class="code-header"]' \
11 // "impl<T> Send for Owned<T>where <T as Owned<'static>>::Reader: Send"
12 pub struct Owned<T> where T: for<'a> ::traits::Owned<'a> {
13     marker: PhantomData<<T as ::traits::Owned<'static>>::Reader>,
14 }