You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It looks like this is a regression in type inference in Rust 1.28; on
1.27 this code compiled fine. 1.28 complains about an ambiguity.
Using string slicing rather than as_ref resolved the issue.
I filed a bug at rust-lang/rust#55129.
The following file compiles on Rust 1.27.0:
On 1.28.0, it fails with the following message:
I found #48668 which looks related, but it happened around 1.25.0.
The regression is still present in Rust 1.29.2.
The text was updated successfully, but these errors were encountered: