]> git.lizzy.rs Git - rust.git/blob - src/test/ui/const-generics/integer-literal-generic-arg-in-where-clause.rs
pin docs: add some forward references
[rust.git] / src / test / ui / const-generics / integer-literal-generic-arg-in-where-clause.rs
1 // check-pass
2
3 #![feature(const_generics)]
4 //~^ WARN the feature `const_generics` is incomplete
5
6 fn takes_closure_of_array_3<F>(f: F) where F: Fn([i32; 3]) {
7     f([1, 2, 3]);
8 }
9
10 fn takes_closure_of_array_3_apit(f: impl Fn([i32; 3])) {
11     f([1, 2, 3]);
12 }
13
14 fn returns_closure_of_array_3() -> impl Fn([i32; 3]) {
15     |_| {}
16 }
17
18 fn main() {}