Matthias Krüger
a13d7dbecf
Rollup merge of #127878 - estebank:assoc-item-removal, r=fmease
...
Fix associated item removal suggestion
We were previously telling people to write what was already there, instead of removal (treating it as a `help`). We now properly suggest to remove the code that needs to be removed.
```
error[E0229]: associated item constraints are not allowed here
--> $DIR/E0229.rs:13:25
|
LL | fn baz<I>(x: &<I as Foo<A = Bar>>::A) {}
| ^^^^^^^ associated item constraint not allowed here
|
help: consider removing this associated item binding
|
LL - fn baz<I>(x: &<I as Foo<A = Bar>>::A) {}
LL + fn baz<I>(x: &<I as Foo>::A) {}
|
```
2024-07-18 08:09:01 +02:00
..
2024-02-16 20:02:50 +00:00
2024-07-04 02:02:21 +00:00
2024-02-16 20:02:50 +00:00
2024-02-16 20:02:50 +00:00
2024-02-16 20:02:50 +00:00
2024-03-20 17:29:58 +00:00
2024-03-20 17:29:58 +00:00
2024-02-16 20:02:50 +00:00
2024-02-16 20:02:50 +00:00
2024-02-16 20:02:50 +00:00
2024-02-16 20:02:50 +00:00
2024-02-16 20:02:50 +00:00
2024-05-17 20:31:13 +00:00
2024-03-20 17:29:58 +00:00
2024-07-14 13:50:09 +09:00
2024-02-16 20:02:50 +00:00
2024-02-16 20:02:50 +00:00
2024-02-16 20:02:50 +00:00
2024-05-29 09:27:07 +00:00
2024-05-29 09:27:07 +00:00
2024-05-29 09:27:07 +00:00
2024-02-16 20:02:50 +00:00
2024-02-16 20:02:50 +00:00
2024-03-14 12:17:00 -04:00
2024-05-29 22:26:54 +00:00
2024-02-16 20:02:50 +00:00
2024-02-16 20:02:50 +00:00
2024-03-14 17:19:40 +01:00
2024-03-14 17:19:40 +01:00
2024-03-14 17:19:40 +01:00
2024-03-14 17:19:40 +01:00
2024-02-16 20:02:50 +00:00
2024-02-16 20:02:50 +00:00
2024-05-30 22:52:33 +02:00
2024-07-17 21:30:40 +00:00
2024-02-16 20:02:50 +00:00
2024-02-16 20:02:50 +00:00
2024-02-16 20:02:50 +00:00
2024-02-16 20:02:50 +00:00
2024-02-16 20:02:50 +00:00
2024-05-17 21:23:47 +00:00
2024-02-16 20:02:50 +00:00
2024-02-16 20:02:50 +00:00
2024-05-30 22:52:33 +02:00
2024-06-03 08:14:03 +00:00
2024-02-16 20:02:50 +00:00
2024-02-16 20:02:50 +00:00
2024-02-16 20:02:50 +00:00
2024-02-16 20:02:50 +00:00
2024-02-16 20:02:50 +00:00
2024-02-16 20:02:50 +00:00
2024-02-16 20:02:50 +00:00
2024-04-01 22:48:23 -04:00
2024-03-14 17:19:40 +01:00
2024-02-16 20:02:50 +00:00
2024-03-07 14:26:31 +00:00
2024-02-16 20:02:50 +00:00
2024-05-24 11:20:33 -04:00
2024-06-21 19:00:18 -04:00
2024-06-03 13:03:52 +00:00
2024-06-03 13:03:52 +00:00
2024-06-18 04:14:43 +08:00
2024-06-18 04:14:43 +08:00
2024-06-18 04:14:43 +08:00
2024-06-18 04:14:43 +08:00
2024-02-16 20:02:50 +00:00
2024-02-16 20:02:50 +00:00
2024-06-18 04:14:43 +08:00
2024-06-18 04:14:43 +08:00
2024-06-20 17:42:40 +02:00
2024-02-21 15:45:13 +01:00
2024-05-28 11:55:20 +00:00
2024-05-28 11:55:20 +00:00