summary refs log tree commit diff
path: root/src/test/ui/const-generics/const-param-from-outer-fn.rs
blob: 5a8dd92086f8597c42561cd983ae984c423ddedc (plain)
1
2
3
4
5
6
7
8
9
10
11
#![feature(const_generics)]
//~^ WARN the feature `const_generics` is incomplete and may cause the compiler to crash

fn foo<const X: u32>() {
    //~^ ERROR const generics in any position are currently unsupported
    fn bar() -> u32 {
        X //~ ERROR can't use generic parameters from outer function
    }
}

fn main() {}