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
editor or extension: VS Code 1.93.0, rust-analyzer VS Code extension v0.3.2096
relevant settings: none
repository link (if public, optional): N/A
code snippet to reproduce:
use std::borrow::Borrow;fnbuggy<T:Borrow<Q>,Q:Ord>(a:T,b:&Q) -> std::cmp::Ordering{
a.borrow().cmp(b)}
Error:
expected &&{unknown}, found &Q
Screenshot:
Ironically if I do add a reference, it triggers a clippy warning ("this expression creates a reference which is immediately dereferenced by the compiler").
The text was updated successfully, but these errors were encountered:
I'm getting what appears to be a false-positive error in my IDE, but
cargo build
succeeds.rust-analyzer version: 0.3.2096-standalone
rustc version: rustc 1.81.0 (eeb90cda1 2024-09-04)
editor or extension: VS Code 1.93.0, rust-analyzer VS Code extension v0.3.2096
relevant settings: none
repository link (if public, optional): N/A
code snippet to reproduce:
Error:
Screenshot:
Ironically if I do add a reference, it triggers a clippy warning ("this expression creates a reference which is immediately dereferenced by the compiler").
The text was updated successfully, but these errors were encountered: