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
tetrogem
changed the title
Multiple trait implementations causing trait function return type to be {unknown}
Implementing trait as returning self causes return type to become {unknown}
Mar 10, 2024
rust-analyzer version: 0.4.1875-standalone (574e23e 2024-03-09)
rustc version: 1.77.0-nightly (d78329b92 2024-01-13)
relevant settings: n/a
repository link (if public, optional): n/a
code snippet to reproduce:
This program, though RA says a type is unknown, compiles successfully and outputs the expected values:
Implementing
get
in a way that does not returnself
appears to fix the problem.Edit: found an even more minimal reproducible example which changes what the bug appears to be, edited the title & code sample accordingly
The text was updated successfully, but these errors were encountered: