1 warning: the feature `const_generics` is incomplete and may cause the compiler to crash
2 --> $DIR/cannot-infer-const-args.rs:1:12
4 LL | #![feature(const_generics)]
7 = note: `#[warn(incomplete_features)]` on by default
9 error[E0282]: type annotations needed
10 --> $DIR/cannot-infer-const-args.rs:9:5
13 | ^^^ cannot infer type for fn item `fn() -> usize {foo::<_: usize>}`
15 error: aborting due to previous error
17 For more information about this error, try `rustc --explain E0282`.