summaryrefslogtreecommitdiffstats
path: root/tests/ui/const-generics/outer-lifetime-in-const-generic-default.rs
blob: 3018439afa7170e39bfccecd96d0698a7b0eb29d (plain)
1
2
3
4
5
6
7
8
9
10
struct Foo<
    'a,
    const N: usize = {
        let x: &'a ();
        //~^ ERROR use of non-static lifetime `'a` in const generic
        3
    },
>(&'a ());

fn main() {}