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