]> git.lizzy.rs Git - rust.git/blob - src/test/ui/const-generics/const-param-from-outer-fn.rs
Rollup merge of #75151 - pickfire:patch-4, r=LukasKalbertodt
[rust.git] / src / test / ui / const-generics / const-param-from-outer-fn.rs
1 #![feature(const_generics)]
2 //~^ WARN the feature `const_generics` is incomplete
3
4 fn foo<const X: u32>() {
5     fn bar() -> u32 {
6         X //~ ERROR can't use generic parameters from outer function
7     }
8 }
9
10 fn main() {}