]> git.lizzy.rs Git - rust.git/blob - tests/rustdoc/issue-56822.rs
Rollup merge of #107264 - ferrocene:pa-private-items, r=Mark-Simulacrum
[rust.git] / tests / rustdoc / issue-56822.rs
1 struct Wrapper<T>(T);
2
3 trait MyTrait {
4     type Output;
5 }
6
7 impl<'a, I, T: 'a> MyTrait for Wrapper<I>
8     where I: MyTrait<Output=&'a T>
9 {
10     type Output = T;
11 }
12
13 struct Inner<'a, T>(&'a T);
14
15 impl<'a, T> MyTrait for Inner<'a, T> {
16     type Output = &'a T;
17 }
18
19 // @has issue_56822/struct.Parser.html
20 // @has - '//*[@id="synthetic-implementations-list"]//*[@class="impl"]//h3[@class="code-header"]' \
21 // "impl<'a> Send for Parser<'a>"
22 pub struct Parser<'a> {
23     field: <Wrapper<Inner<'a, u8>> as MyTrait>::Output
24 }