rust/tests/ui/where-clauses
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
..
auxiliary
higher-ranked-fn-type.quiet.stderr
higher-ranked-fn-type.rs
higher-ranked-fn-type.verbose.stderr On long E0277 primary span label, move it to a help 2024-11-02 03:08:04 +00:00
ignore-err-clauses.rs
ignore-err-clauses.stderr
issue-50825-1.rs
issue-50825.rs
normalization-of-unknown-type.rs Taint infcx when reporting errors 2024-06-19 04:41:56 +00:00
normalization-of-unknown-type.stderr Taint infcx when reporting errors 2024-06-19 04:41:56 +00:00
self-in-where-clause-allowed.rs
self-in-where-clause-allowed.stderr
where-clause-bounds-inconsistency.rs tests: remove //@ pretty-expanded usages 2024-11-26 02:50:48 +08:00
where-clause-constraints-are-local-for-inherent-impl.rs
where-clause-constraints-are-local-for-inherent-impl.stderr Use trait name instead of full constraint in suggestion message 2024-12-07 21:29:58 +00:00
where-clause-constraints-are-local-for-trait-impl.rs
where-clause-constraints-are-local-for-trait-impl.stderr Use trait name instead of full constraint in suggestion message 2024-12-07 21:29:58 +00:00
where-clause-early-bound-lifetimes.rs tests: remove //@ pretty-expanded usages 2024-11-26 02:50:48 +08:00
where-clause-early-bound-lifetimes.stderr tests: remove //@ pretty-expanded usages 2024-11-26 02:50:48 +08:00
where-clause-method-substituion-rpass.rs tests: remove //@ pretty-expanded usages 2024-11-26 02:50:48 +08:00
where-clause-method-substituion-rpass.stderr tests: remove //@ pretty-expanded usages 2024-11-26 02:50:48 +08:00
where-clause-method-substituion.rs
where-clause-method-substituion.stderr
where-clause-placement-assoc-type-in-impl.fixed
where-clause-placement-assoc-type-in-impl.rs
where-clause-placement-assoc-type-in-impl.stderr
where-clause-placement-assoc-type-in-trait.fixed
where-clause-placement-assoc-type-in-trait.rs
where-clause-placement-assoc-type-in-trait.stderr
where-clause-placement-type-alias.rs
where-clause-placement-type-alias.stderr
where-clause-region-outlives.rs tests: remove //@ pretty-expanded usages 2024-11-26 02:50:48 +08:00
where-clauses-cross-crate.rs
where-clauses-lifetimes.rs tests: remove //@ pretty-expanded usages 2024-11-26 02:50:48 +08:00
where-clauses-method-unsatisfied.rs
where-clauses-method-unsatisfied.stderr
where-clauses-method.rs
where-clauses-unboxed-closures.rs tests: remove //@ pretty-expanded usages 2024-11-26 02:50:48 +08:00
where-clauses-unsatisfied.rs
where-clauses-unsatisfied.stderr
where-clauses.rs
where-equality-constraints.rs
where-equality-constraints.stderr
where-for-self-2.rs
where-for-self-2.stderr
where-for-self.rs
where-for-self.stderr
where-lifetime-resolution.rs
where-lifetime-resolution.stderr