blob: 1682b26ac8777bb64f527b345a061e890fef7450 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
error[E0282]: type annotations needed
--> $DIR/issue-77092.rs:11:26
|
LL | println!("{:?}", take_array_from_mut(&mut arr, i));
| ^^^^^^^^^^^^^^^^^^^ cannot infer the value of the const parameter `N` declared on the function `take_array_from_mut`
|
help: consider specifying the generic arguments
|
LL | println!("{:?}", take_array_from_mut::<i32, N>(&mut arr, i));
| ++++++++++
error: aborting due to previous error
For more information about this error, try `rustc --explain E0282`.
|