blob: cccf433e32864ae0c58c21ec0b8519d91bc3161f (
plain)
1
2
3
4
5
6
7
8
9
10
11
|
error[E0282]: type annotations needed for `Foo<N>`
--> $DIR/doesnt_infer.rs:11:15
|
LL | let foo = Foo::foo();
| --- ^^^^^^^^ cannot infer the value of const parameter `N`
| |
| consider giving `foo` the explicit type `Foo<N>`, where the const parameter `N` is specified
error: aborting due to previous error
For more information about this error, try `rustc --explain E0282`.
|