summaryrefslogtreecommitdiffstats
path: root/tests/ui/const-generics/outer-lifetime-in-const-generic-default.rs
blob: de710b0e37d3222411db707e6cab3d3f851effea (plain)
1
2
3
4
5
6
7
8
9
10
struct Foo<
    'a,
    const N: usize = {
        let x: &'a ();
        //~^ ERROR generic parameters may not be used in const operations
        3
    },
>(&'a ());

fn main() {}