]> git.proxmox.com Git - rustc.git/blame - src/test/rustdoc/synthetic_auto/lifetimes.rs
New upstream version 1.65.0+dfsg1
[rustc.git] / src / test / rustdoc / synthetic_auto / lifetimes.rs
CommitLineData
0531ce1d
XL
1pub struct Inner<'a, T: 'a> {
2 field: &'a T,
3}
4
5unsafe impl<'a, T> Send for Inner<'a, T>
6where
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
17pub struct Foo<'c, K: 'c> {
18 inner_field: Inner<'c, K>,
19}