summaryrefslogtreecommitdiffstats
path: root/tests/ui/consts/escaping-bound-var.rs
blob: 7c1fbd24f5558579d87e10e7a364bb126adab9b3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
#![feature(generic_const_exprs)]
//~^ WARN the feature `generic_const_exprs` is incomplete

fn test<'a>(
    _: &'a (),
) -> [(); {
    let x: &'a ();
    //~^ ERROR cannot capture late-bound lifetime in constant
    1
}] {
}

fn main() {}