2020-08-09 01:19:57 -05:00
|
|
|
error[E0282]: type annotations needed
|
2020-11-17 04:44:21 -06:00
|
|
|
--> $DIR/method-chain.rs:20:33
|
2020-08-09 01:19:57 -05:00
|
|
|
|
|
2020-09-14 02:45:02 -05:00
|
|
|
LL | Foo.bar().bar().bar().bar().baz();
|
2020-09-23 03:44:11 -05:00
|
|
|
| ^^^ cannot infer the value of const parameter `N` declared on the associated function `baz`
|
2020-10-08 15:23:01 -05:00
|
|
|
|
|
|
|
|
help: consider specifying the const argument
|
|
|
|
|
|
|
|
|
LL | Foo.bar().bar().bar().bar().baz::<N>();
|
2021-06-21 21:07:19 -05: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`.
|