rust/tests/ui/errors/trait-bound-error-spans
Esteban Küber 3f2a63a68b Use trait name instead of full constraint in suggestion message
```
help: consider restricting type parameter `T` with traits `Copy` and `Trait`
   |
LL | fn duplicate_custom<T: Copy + Trait>(t: S<T>) -> (S<T>, S<T>) {
   |                      ++++++++++++++
```

```
help: consider restricting type parameter `V` with trait `Copy`
   |
LL | fn index<'a, K, V: std::marker::Copy>(map: &'a HashMap<K, V>, k: K) -> &'a V {
   |                  +++++++++++++++++++
```
2024-12-07 21:29:58 +00:00
..
blame-trait-error.rs Fix error spans for arguments to tuple enum constructors 2023-02-28 14:58:14 -08:00
blame-trait-error.stderr Use trait name instead of full constraint in suggestion message 2024-12-07 21:29:58 +00:00