]> git.lizzy.rs Git - rust.git/blob - tests/rustdoc/synthetic_auto/manual.rs
77c04ad2ad942af03c327cf708a075a555d7a75c
[rust.git] / tests / rustdoc / synthetic_auto / manual.rs
1 // @has manual/struct.Foo.html
2 // @has - '//*[@id="synthetic-implementations-list"]//*[@class="impl has-srclink"]//h3[@class="code-header"]' \
3 // 'impl<T> Sync for Foo<T>where T: Sync'
4 //
5 // @has - '//*[@id="trait-implementations-list"]//*[@class="impl has-srclink"]//h3[@class="code-header"]' \
6 // 'impl<T> Send for Foo<T>'
7 //
8 // @count - '//*[@id="trait-implementations-list"]//*[@class="impl has-srclink"]' 1
9 // @count - '//*[@id="synthetic-implementations-list"]//*[@class="impl has-srclink"]' 4
10 pub struct Foo<T> {
11     field: T,
12 }
13
14 unsafe impl<T> Send for Foo<T> {}