rust/tests/ui/const-generics/infer/method-chain.stderr

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

15 lines
513 B
Plaintext
Raw Normal View History

error[E0282]: type annotations needed
--> $DIR/method-chain.rs:15:33
|
2020-09-14 02:45:02 -05:00
LL | Foo.bar().bar().bar().bar().baz();
2022-02-14 06:25:26 -06:00
| ^^^ cannot infer the value of the const parameter `N` declared on the associated function `baz`
|
2022-02-14 06:25:26 -06:00
help: consider specifying the generic argument
|
LL | Foo.bar().bar().bar().bar().baz::<N>();
2022-02-14 06:25:26 -06:00
| +++++
error: aborting due to previous error
For more information about this error, try `rustc --explain E0282`.