summary refs log tree commit diff
path: root/src/test/ui/const-generics/defaults/doesnt_infer.stderr
blob: b57975e26f290b3667b35a347ef9609dc4f48878 (plain)
1
2
3
4
5
6
7
8
9
10
11
error[E0282]: type annotations needed for `Foo<{_: u32}>`
  --> $DIR/doesnt_infer.rs:13:15
   |
LL |     let foo = Foo::foo();
   |         ---   ^^^^^^^^ cannot infer the value of const parameter `N`
   |         |
   |         consider giving `foo` the explicit type `Foo<{_: u32}>`, where the type parameter `N` is specified

error: aborting due to previous error

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