]>
Commit | Line | Data |
---|---|---|
fc512014 | 1 | error[E0282]: type annotations needed |
94222f64 | 2 | --> $DIR/one-param-uninferred.rs:9:23 |
fc512014 XL |
3 | | |
4 | LL | let _: [u8; 17] = foo(); | |
923072b8 | 5 | | ^^^ cannot infer the value of the const parameter `M` declared on the function `foo` |
fc512014 | 6 | | |
923072b8 | 7 | help: consider specifying the generic arguments |
fc512014 | 8 | | |
064997fb FG |
9 | LL | let _: [u8; 17] = foo::<17, M>(); |
10 | | +++++++++ | |
fc512014 XL |
11 | |
12 | error: aborting due to previous error | |
13 | ||
14 | For more information about this error, try `rustc --explain E0282`. |