]> git.lizzy.rs Git - rust.git/blob - src/test/ui/static/static-lifetime-bound.rs
Merge commit '63734fcdd718cca089f84c42f3a42c0096cfd431' into sync_cg_clif-2022-05-15
[rust.git] / src / test / ui / static / static-lifetime-bound.rs
1 fn f<'a: 'static>(_: &'a i32) {} //~WARN unnecessary lifetime parameter `'a`
2
3 fn main() {
4     let x = 0;
5     f(&x); //~ERROR does not live long enough
6 }