]> git.lizzy.rs Git - rust.git/blob - src/test/ui/const-generics/const-param-from-outer-fn.rs
Merge commit '0cce3f643bfcbb92d5a1bb71858c9cbaff749d6b' into clippyup
[rust.git] / src / test / ui / const-generics / const-param-from-outer-fn.rs
1 // revisions: full min
2
3 #![cfg_attr(full, feature(const_generics))]
4 #![cfg_attr(full, allow(incomplete_features))]
5
6 fn foo<const X: u32>() {
7     fn bar() -> u32 {
8         X //~ ERROR can't use generic parameters from outer function
9     }
10 }
11
12 fn main() {}