type-mismatch false positive on unsizing coercion #13864
Labels
A-ty
type system / type inference / traits / method resolution
C-bug
Category: bug
S-unactionable
Issue requires feedback, design decisions or is blocked on other work
rust-analyzer version: rust-analyzer version: 0.3.1334-standalone (74ae2dd 2022-12-25)
rustc version: rustc 1.66.0 (69f9c33d7 2022-12-12)
relevant settings: in vscode's settings.json:
"rust-analyzer.diagnostics.experimental.enable": true, "rust-analyzer.checkOnSave.enable": false
(to opt-in into type checking diagnostics)This code:
compiles fine with rustc, but vscode shows type error from rust-analyzer:
The text was updated successfully, but these errors were encountered: