summaryrefslogtreecommitdiffstats
path: root/src/test/ui/issues/issue-54943.rs
blob: 85722300bf0064160093dcb2d0676d551eedaf23 (plain)
1
2
3
4
5
6
7
8
9
10
fn foo<T: 'static>() { }

fn boo<'a>() {
    return;

    let x = foo::<&'a u32>();
    //~^ ERROR
}

fn main() {}