Confusing error: cannot infer type for type u8
#69683
Labels
A-diagnostics
Area: Messages for errors, warnings, and lints
C-enhancement
Category: An issue proposing an enhancement or a PR with one.
D-confusing
Diagnostics: Confusing error or lint that should be reworked.
D-invalid-suggestion
Diagnostics: A structured suggestion resulting in incorrect code.
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
rustc gives confusing error, suggesting that I give b an explicit type when b already has an explicit type.
Replacing
0u16.foo(b)
with<u16 as Foo<[(); 3]>>::foo(0u16, b)
fixes it.This may be a duplicate of #69123
Source
Log
Meta
Same issue occurs in both latest and nightly and stable.
The text was updated successfully, but these errors were encountered: