about summary refs log tree commit diff
path: root/compiler/rustc_pattern_analysis/src
diff options
context:
space:
mode:
authorEsteban Küber <esteban@kuber.com.ar>2024-07-09 22:11:20 +0000
committerEsteban Küber <esteban@kuber.com.ar>2024-07-17 21:30:40 +0000
commite38032fb3ad5736934ea1ff1ecc43e8af4c47a87 (patch)
tree72c61d8a1443f43cc1b63ef765f997320b6a66e0 /compiler/rustc_pattern_analysis/src
parent032be6f7bbe091c7dfa29f115e94b9cc9bae1758 (diff)
downloadrust-e38032fb3ad5736934ea1ff1ecc43e8af4c47a87.tar.gz
rust-e38032fb3ad5736934ea1ff1ecc43e8af4c47a87.zip
Fix associated item removal suggestion
We were previously telling people to write what was already there, instead of removal.

```
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) {}
   |
```
Diffstat (limited to 'compiler/rustc_pattern_analysis/src')
0 files changed, 0 insertions, 0 deletions