2020-09-23 03:44:11 -05:00
|
|
|
error[E0282]: type annotations needed
|
2020-11-17 04:44:21 -06:00
|
|
|
--> $DIR/issue-77092.rs:11:26
|
2020-09-23 03:44:11 -05:00
|
|
|
|
|
|
|
|
LL | println!("{:?}", take_array_from_mut(&mut arr, i));
|
2022-02-14 06:25:26 -06:00
|
|
|
| ^^^^^^^^^^^^^^^^^^^ cannot infer the value of the const parameter `N` declared on the function `take_array_from_mut`
|
2020-10-08 15:23:01 -05:00
|
|
|
|
|
2022-02-14 06:25:26 -06:00
|
|
|
help: consider specifying the generic arguments
|
2020-10-08 15:23:01 -05:00
|
|
|
|
|
2022-02-14 06:25:26 -06:00
|
|
|
LL | println!("{:?}", take_array_from_mut::<i32, N>(&mut arr, i));
|
|
|
|
| ++++++++++
|
2020-09-23 03:44:11 -05:00
|
|
|
|
|
|
|
error: aborting due to previous error
|
|
|
|
|
|
|
|
For more information about this error, try `rustc --explain E0282`.
|