]>
git.proxmox.com Git - rustc.git/blob - src/test/ui/lifetimes/issue-70917-lifetimes-in-fn-def.rs
3 fn assert_static
<T
: '
static>(_
: T
) {}
5 // NOTE(eddyb) the `'a: 'a` may look a bit strange, but we *really* want
6 // `'a` to be an *early-bound* parameter, otherwise it doesn't matter anyway.
7 fn capture_lifetime
<'a
: 'a
>() {}
9 fn test_lifetime
<'a
>() {
10 assert_static(capture_lifetime
::<'a
>);