rust/tests/ui/dropck
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
cleanup-arm-conditional.rs tests: remove //@ pretty-expanded usages 2024-11-26 02:50:48 +08:00
constrained_by_assoc_type_equality_and_self_ty.rs Rewrite dropck 2024-07-02 02:30:38 +01:00
constrained_by_assoc_type_equality_and_self_ty.stderr Rewrite dropck 2024-07-02 02:30:38 +01:00
constrained_by_assoc_type_equality.rs Rewrite dropck 2024-07-02 02:30:38 +01:00
coroutine-liveness-1.rs
coroutine-liveness-2.rs
drop-on-non-struct.rs
drop-on-non-struct.stderr Make new information notes instead of labels 2024-09-26 17:17:11 +00:00
drop-with-active-borrows-1.rs
drop-with-active-borrows-1.stderr Peel off explicit (or implicit) deref before suggesting clone on move error in borrowck 2024-07-26 14:41:56 -04:00
drop-with-active-borrows-2.rs
drop-with-active-borrows-2.stderr
dropck_fn_type.rs
dropck_no_diverge_on_nonregular_1.rs Tweak E0320 overflow error wording 2024-11-05 21:54:45 +00:00
dropck_no_diverge_on_nonregular_1.stderr Tweak E0320 overflow error wording 2024-11-05 21:54:45 +00:00
dropck_no_diverge_on_nonregular_2.rs Tweak E0320 overflow error wording 2024-11-05 21:54:45 +00:00
dropck_no_diverge_on_nonregular_2.stderr Tweak E0320 overflow error wording 2024-11-05 21:54:45 +00:00
dropck_no_diverge_on_nonregular_3.rs Tweak E0320 overflow error wording 2024-11-05 21:54:45 +00:00
dropck_no_diverge_on_nonregular_3.stderr Tweak E0320 overflow error wording 2024-11-05 21:54:45 +00:00
dropck_trait_cycle_checked.rs
dropck_trait_cycle_checked.stderr replace "cast" with "coercion" where applicable 2024-09-24 22:20:46 +02:00
dropck_traits.rs
dropck-empty-array.rs Add special-case for [T, 0] in dropck 2024-07-31 16:15:05 +03:00
dropck-eyepatch-extern-crate.rs
dropck-eyepatch-extern-crate.stderr
dropck-eyepatch-implies-unsafe-impl.rs
dropck-eyepatch-implies-unsafe-impl.stderr
dropck-eyepatch-reorder.rs
dropck-eyepatch-reorder.stderr
dropck-eyepatch.rs
dropck-eyepatch.stderr
dropck-union.rs
dropck-union.stderr
explicit-drop-bounds.bad1.stderr Use trait name instead of full constraint in suggestion message 2024-12-07 21:29:58 +00:00
explicit-drop-bounds.bad2.stderr Use trait name instead of full constraint in suggestion message 2024-12-07 21:29:58 +00:00
explicit-drop-bounds.rs
explicit-implied-outlives.bad1.stderr
explicit-implied-outlives.bad2.stderr
explicit-implied-outlives.rs
issue-24805-dropck-itemless.rs
issue-28498-ugeh-with-lifetime-param.rs
issue-28498-ugeh-with-passed-to-fn.rs
issue-28498-ugeh-with-trait-bound.rs
issue-29844.rs
issue-34053.rs
issue-38868.rs
issue-38868.stderr
issue-54943-1.rs
issue-54943-2.rs
negative.rs
negative.stderr
reject-specialized-drops-8142.rs Rewrite dropck 2024-07-02 02:30:38 +01:00
reject-specialized-drops-8142.stderr Rewrite dropck 2024-07-02 02:30:38 +01:00
relate_lt_in_type_outlives_bound.rs
relate_lt_in_type_outlives_bound.stderr
reservation.rs
reservation.stderr
transitive-outlives-2.rs
transitive-outlives.bad.stderr Rewrite dropck 2024-07-02 02:30:38 +01:00
transitive-outlives.rs Rewrite dropck 2024-07-02 02:30:38 +01:00
trivial-impl-bounds.rs
unconstrained_const_param_on_drop.rs Rewrite dropck 2024-07-02 02:30:38 +01:00
unconstrained_const_param_on_drop.stderr Rewrite dropck 2024-07-02 02:30:38 +01:00