rust/tests/ui/const-generics/infer/issue-77092.stderr

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

15 lines
588 B
Plaintext
Raw Normal View History

error[E0282]: type annotations needed
2020-11-17 04:44:21 -06:00
--> $DIR/issue-77092.rs:11:26
|
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`
|
2022-02-14 06:25:26 -06:00
help: consider specifying the generic arguments
|
2022-02-14 06:25:26 -06:00
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`.