blob: 4b8e2db7233e4bd2a3eef99fcdad9cbadfac69d7 (
plain)
1
2
3
4
5
6
7
8
9
10
|
#![feature(const_generics)]
//~^ WARN the feature `const_generics` is incomplete
fn foo<const X: u32>() {
fn bar() -> u32 {
X //~ ERROR can't use generic parameters from outer function
}
}
fn main() {}
|