summaryrefslogtreecommitdiffstats
path: root/tests/ui/const-generics/infer/one-param-uninferred.stderr
blob: cf70c2181395025a56e5d91ed0ec6d8ba632c01c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
error[E0282]: type annotations needed
  --> $DIR/one-param-uninferred.rs:9:23
   |
LL |     let _: [u8; 17] = foo();
   |                       ^^^ cannot infer the value of the const parameter `M` declared on the function `foo`
   |
help: consider specifying the generic arguments
   |
LL |     let _: [u8; 17] = foo::<17, M>();
   |                          +++++++++

error: aborting due to previous error

For more information about this error, try `rustc --explain E0282`.