summary refs log tree commit diff
path: root/src/test/ui/const-generics/infer/method-chain.stderr
blob: 53d92e5ae725d1c060d3eff112eb931968036ea6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
error[E0282]: type annotations needed
  --> $DIR/method-chain.rs:15:33
   |
LL |     Foo.bar().bar().bar().bar().baz();
   |                                 ^^^ cannot infer the value of const parameter `N` declared on the associated function `baz`
   |
help: consider specifying the const argument
   |
LL |     Foo.bar().bar().bar().bar().baz::<N>();
   |                                 ~~~~~~~~

error: aborting due to previous error

For more information about this error, try `rustc --explain E0282`.