2022-12-21 15:53:52 -06:00
|
|
|
error[E0284]: type annotations needed
|
|
|
|
--> $DIR/unify_with_nested_expr.rs:8:5
|
|
|
|
|
|
|
|
|
LL | bar();
|
|
|
|
| ^^^ cannot infer the value of the const parameter `N` declared on the function `bar`
|
|
|
|
|
|
2024-06-19 03:25:58 -05:00
|
|
|
note: required by a const generic parameter in `bar`
|
2024-06-17 03:34:26 -05:00
|
|
|
--> $DIR/unify_with_nested_expr.rs:12:8
|
2022-12-21 15:53:52 -06:00
|
|
|
|
|
|
|
|
LL | fn bar<const N: usize>()
|
2024-06-19 03:25:58 -05:00
|
|
|
| ^^^^^^^^^^^^^^ required by this const generic parameter in `bar`
|
2022-12-21 15:53:52 -06:00
|
|
|
help: consider specifying the generic argument
|
|
|
|
|
|
|
|
|
LL | bar::<N>();
|
|
|
|
| +++++
|
|
|
|
|
2023-11-21 09:44:16 -06:00
|
|
|
error: aborting due to 1 previous error
|
2022-12-21 15:53:52 -06:00
|
|
|
|
|
|
|
For more information about this error, try `rustc --explain E0284`.
|