1 warning: the feature `const_generics` is incomplete and may cause the compiler to crash
2 --> $DIR/cannot-infer-type-for-const-param.rs:1:12
4 LL | #![feature(const_generics)]
7 error[E0282]: type annotations needed
8 --> $DIR/cannot-infer-type-for-const-param.rs:10:19
10 LL | let _ = Foo::<3>([1, 2, 3]);
11 | ^ cannot infer type for `{integer}`
13 error[E0308]: mismatched types
14 --> $DIR/cannot-infer-type-for-const-param.rs:10:22
16 LL | let _ = Foo::<3>([1, 2, 3]);
17 | ^^^^^^^^^ expected `Const { ty: usize, val: Unevaluated(DefId(0:18 ~ cannot_infer_type_for_const_param[317d]::main[0]::{{constant}}[0]), []) }`, found `Const { ty: usize, val: Scalar(Bits { size: 8, bits: 3 }) }`
19 = note: expected type `[u8; _]`
22 error: aborting due to 2 previous errors
24 Some errors have detailed explanations: E0282, E0308.
25 For more information about an error, try `rustc --explain E0282`.