Closed
Description
At the moment, we simply emit errors like:
error[E0282]: type annotations needed
--> $DIR/method-chain.rs:21:33
|
LL | Foo.bar().bar().bar().bar().baz();
| ^^^
|
= note: cannot infer the value of the const parameter `N`
It would be good to suggest to the user how to fix this, like with uninferred type arguments.
Metadata
Metadata
Assignees
Labels
Area: const generics (parameters and arguments)Area: Messages for errors, warnings, and lintsArea: Suggestions generated by the compiler applied by `cargo fix`Diagnostics: An error or lint that doesn't give enough information about the problem at hand.`#![feature(const_generics)]`An error is correctly emitted, but is confusing, for `min_const_generics`.