Files
rust/tests/ui
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-22 11:01:07 -08:00
2023-12-14 15:22:37 +01:00
2023-12-10 10:56:22 +08:00
2023-12-14 15:22:37 +01:00
2023-11-28 23:17:28 +00:00
2023-12-24 01:58:13 +08:00
2023-12-07 17:46:36 +01:00
2023-12-19 13:35:37 -05:00
2023-09-06 12:09:29 +03:00
2023-12-23 00:09:37 +08:00
2023-12-15 16:12:27 +00:00
2023-12-10 14:25:57 +01:00
2023-12-19 13:35:37 -05:00
2023-12-14 15:22:37 +01:00
2023-12-10 10:56:22 +08:00
2023-12-19 04:28:21 +00:00
2023-12-01 20:01:39 +00:00
2023-12-19 13:35:37 -05:00
2023-12-14 15:22:37 +01:00
2023-12-19 13:35:37 -05:00
2023-12-15 16:12:27 +00:00
2023-12-17 07:31:07 +00:00
2023-11-24 21:04:51 +01:00
2023-12-10 10:56:22 +08:00
2023-12-14 15:22:37 +01:00
2023-12-19 13:35:37 -05:00
2023-12-14 15:22:37 +01:00
2023-12-10 10:56:22 +08:00
2023-12-15 16:12:27 +00:00
2023-12-14 15:22:37 +01:00
2023-07-29 11:47:26 +02:00
2023-10-28 23:11:03 -07:00
2023-08-14 16:57:51 -07:00
2023-12-22 11:01:07 -08:00
2023-12-19 13:35:37 -05:00
2023-10-20 21:14:01 +00:00
2023-12-22 11:01:07 -08:00
2023-12-10 10:56:22 +08:00
2023-12-10 10:56:22 +08:00
2023-12-14 15:22:37 +01:00
2023-12-19 13:35:37 -05:00
2023-12-10 10:56:22 +08:00
2023-09-10 23:06:14 +02:00
2023-09-10 23:06:14 +02:00
2023-10-20 21:14:01 +00:00