]> git.proxmox.com Git - rustc.git/blame - src/test/ui/lifetimes/issue-70917-lifetimes-in-fn-def.rs
New upstream version 1.67.1+dfsg1
[rustc.git] / src / test / ui / lifetimes / issue-70917-lifetimes-in-fn-def.rs
CommitLineData
ba9703b0
XL
1// check-pass
2
3fn assert_static<T: 'static>(_: T) {}
4
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.
7fn capture_lifetime<'a: 'a>() {}
8
9fn test_lifetime<'a>() {
10 assert_static(capture_lifetime::<'a>);
11}
12
13fn main() {}