intellij-rust / intellij-rust/intellij-rust
optimize mismatched types error
- Dominant language
- Kotlin
- Stars
- 4.5k
- Forks
- 385
- PR merge metrics
- No merged PRs in 30d
Description
## Environment
* **IntelliJ Rust plugin version:** 0.2.121.3049-201-nightly
* **Rust toolchain version:** rustc 1.44.0-nightly (52fa23add 2020-04-18)
* **IDE name and version:** clion 2020.1
* **Operating system:** Arch Linux
## Problem description
After enable cargo check on fly, when writing a function, unless you finish it, the return type is always not right, such as

I know the return type is not right, but I am writing it.
The many red lines don't look good.
In Goland, the red lines only in `}`

It's clear and not a lot of red lines, look better
## Steps to reproduce
1. enable cargo check on fly
2. write a function with return type
3. write function body but not finish
4. wait for analyze
Contributor guide
Assessment
This issue has not been assessed yet.