blob: 1551e81ea7577a270f3e6fa602e192049909bf7a (
plain)
1
2
3
4
5
6
7
8
9
10
11
|
error[E0282]: type annotations needed for `Foo<{_: u32}>`
--> $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`.
|