Files
rust/compiler
Esteban Küber dc30eb1967 Suggest = to == in more cases, even in the face of reference mismatch
Given `foo: &String` and `bar: str`, suggest `==` when given `if foo = bar {}`:

```
error[E0308]: mismatched types
  --> $DIR/assignment-expected-bool.rs:37:8
   |
LL |     if foo = bar {}
   |        ^^^^^^^^^ expected `bool`, found `()`
   |
help: you might have meant to compare for equality
   |
LL |     if foo == bar {}
   |             +
```
2023-12-26 23:48:55 +00:00
..
2023-12-16 02:36:35 -08:00
2023-12-05 17:52:51 -08:00
2023-11-15 19:41:28 -05:00
2023-11-15 19:41:28 -05:00
2023-11-26 08:38:02 +11:00
2023-11-23 14:11:02 +03:00
2023-11-22 08:13:21 +11:00