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
I expected rust-analyzer to resolve the .method() invocation correctly and highlight it as yellow according to my semantic tokens highlighting config.
Actual
You may see that method() method symbol is unresolved. Here is how it looks in my VSCode. I configured unresolved symbols semantic token type to be displayed in pale-red. You may see that the lifetime parameter of the struct is inferred to be {unknown}. I suppose this is the reason why .method() is unresolved.
Well-formed variation
If you remove the T = bool default value of the generic parameter on the struct definition and pass bool explicitly then all is fine.