“Mismatched Types” in Rust
If you’ve written Rust for more than five minutes, you’ve met this error: At first glance, it feels nitpicky. You know both values are “basically the same thing”. Rust disagrees—and it’s doing so for a very good reason. Let’s break down what this error actually means and how to think about it like a Rustacean. […]