blob: 27b9ca9c291ec4e6baa0060cbfa4a585b82724a9 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
|
// revisions: full min
#![cfg_attr(full, feature(const_generics))]
#![cfg_attr(full, allow(incomplete_features))]
fn foo<const X: u32>() {
fn bar() -> u32 {
X //~ ERROR can't use generic parameters from outer function
}
}
fn main() {}
|