]> git.lizzy.rs Git - rust.git/blob - src/test/rustdoc/synthetic_auto/nested.rs
Document Arc::from
[rust.git] / src / test / rustdoc / synthetic_auto / nested.rs
1 pub struct Inner<T> {
2     field: T,
3 }
4
5 unsafe impl<T> Send for Inner<T>
6 where
7     T: Copy,
8 {
9 }
10
11 // @has nested/struct.Foo.html
12 // @has - '//*[@id="synthetic-implementations-list"]//*[@class="impl"]//code' 'impl<T> Send for \
13 // Foo<T> where T: Copy'
14 //
15 // @has - '//*[@id="synthetic-implementations-list"]//*[@class="impl"]//code' \
16 // 'impl<T> Sync for Foo<T> where T: Sync'
17 pub struct Foo<T> {
18     inner_field: Inner<T>,
19 }