summaryrefslogtreecommitdiffstats
path: root/tests/ui/const-generics/early/const-param-from-outer-fn.rs
blob: ee57f3c4fc32c6bbe0ba863d2af896ee92f01768 (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 item
    }
}

fn main() {}