]>
Commit | Line | Data |
---|---|---|
0531ce1d XL |
1 | pub struct Inner<'a, T: 'a> { |
2 | field: &'a T, | |
3 | } | |
4 | ||
5 | unsafe impl<'a, T> Send for Inner<'a, T> | |
6 | where | |
7 | 'a: 'static, | |
8 | T: for<'b> Fn(&'b bool) -> &'a u8, | |
9 | {} | |
10 | ||
11 | // @has lifetimes/struct.Foo.html | |
17df50a5 | 12 | // @has - '//*[@id="synthetic-implementations-list"]//*[@class="impl has-srclink"]//h3[@class="code-header in-band"]' \ |
f2b60f7d | 13 | // "impl<'c, K> Send for Foo<'c, K>where K: for<'b> Fn(&'b bool) -> &'c u8, 'c: 'static" |
0531ce1d | 14 | // |
17df50a5 | 15 | // @has - '//*[@id="synthetic-implementations-list"]//*[@class="impl has-srclink"]//h3[@class="code-header in-band"]' \ |
f2b60f7d | 16 | // "impl<'c, K> Sync for Foo<'c, K>where K: Sync" |
0531ce1d XL |
17 | pub struct Foo<'c, K: 'c> { |
18 | inner_field: Inner<'c, K>, | |
19 | } |