Why RA has no hint for sha2::Sha256::new()?
⚓ Rust 📅 2026-03-12 👤 surdeus 👁️ 6When I use vscode or lazyvim in neovide,I found somthing that pretty wired that there is no type infer. But it just occur in sha2 as code following:
use sha2::Digest;
fn main() {
//there is no type infer for hasher,and no discreption for `new`
let hasher = sha2::Sha256::new();
}
what is happening?where can I get efficient help?
1 post - 1 participant
🏷️ Rust_feed