intellij-rust / intellij-rust/intellij-rust

optimize mismatched types error

Open
#5,259 0 comments 2 reactions 0 assignees View on GitHub
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
![image](https://user-images.githubusercontent.com/10096425/79685336-9bc8e500-826a-11ea-83e6-7b59442b7632.png)

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 `}`
![image](https://user-images.githubusercontent.com/10096425/79685578-602f1a80-826c-11ea-926e-03baf6204be1.png)

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

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.