]> git.lizzy.rs Git - rust.git/blob - tests/rustdoc/issue-50159.rs
Auto merge of #107778 - weihanglo:update-cargo, r=weihanglo
[rust.git] / tests / rustdoc / issue-50159.rs
1 pub trait Signal {
2     type Item;
3 }
4
5 pub trait Signal2 {
6     type Item2;
7 }
8
9 impl<B, C> Signal2 for B where B: Signal<Item = C> {
10     type Item2 = C;
11 }
12
13 // @has issue_50159/struct.Switch.html
14 // @has - '//h3[@class="code-header"]' 'impl<B> Send for Switch<B>where <B as Signal>::Item: Send'
15 // @has - '//h3[@class="code-header"]' 'impl<B> Sync for Switch<B>where <B as Signal>::Item: Sync'
16 // @count - '//*[@id="implementations-list"]//*[@class="impl"]' 0
17 // @count - '//*[@id="synthetic-implementations-list"]//*[@class="impl"]' 5
18 pub struct Switch<B: Signal> {
19     pub inner: <B as Signal2>::Item2,
20 }