]> git.lizzy.rs Git - rust.git/blob - src/test/rustdoc/issue-50159.rs
Merge commit 'b7f3f7f6082679da2da9a0b3faf1b5adef3afd3b' into clippyup
[rust.git] / src / test / 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 in-band"]' 'impl<B> Send for Switch<B> where <B as Signal>::Item: Send'
15 // @has - '//h3[@class="code-header in-band"]' '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 has-srclink"]' 5
18 pub struct Switch<B: Signal> {
19     pub inner: <B as Signal2>::Item2,
20 }