summaryrefslogtreecommitdiffstats
path: root/tests/ui/const-generics/early/const-param-from-outer-fn.rs
blob: c3b418ee3f8adf238741bc83037840f3c6dcd459 (plain)
1
2
3
4
5
6
7
fn foo<const X: u32>() {
    fn bar() -> u32 {
        X //~ ERROR can't use generic parameters from outer function
    }
}

fn main() {}