summaryrefslogtreecommitdiffstats
path: root/tests/ui/static/static-lifetime-bound.rs
blob: 847fe87b2ea378af454453f9bc421e04afc215dd (plain)
1
2
3
4
5
6
fn f<'a: 'static>(_: &'a i32) {}

fn main() {
    let x = 0;
    f(&x); //~ERROR does not live long enough
}