rust/tests/ui/associated-type-bounds
Esteban Küber 3bbc70a5f7 Restrict param constraint suggestion
When encountering an associated item with a type param that could be
constrained, do not look at the parent item if the type param comes from
the associated item.

Fix #117209.
2023-10-26 18:33:03 +00:00
..
auxiliary
return-type-notation Stabilize AFIT and RPITIT 2023-10-13 21:01:36 +00:00
ambiguous-associated-type2.rs added links as a note 2023-07-18 09:27:35 -04:00
ambiguous-associated-type2.stderr moved note as unspanned note, moved note to the bottom of the msg 2023-07-18 21:53:34 -04:00
ambiguous-associated-type.rs
assoc-type-bound-through-where-clause.rs
assoc-type-eq-with-dyn-atb-fail.rs
assoc-type-eq-with-dyn-atb-fail.stderr
associated-item-through-where-clause.rs
bad-bounds-on-assoc-in-trait.rs
bad-bounds-on-assoc-in-trait.stderr Revert "Suggest using Arc on !Send/!Sync types" 2023-08-28 03:16:48 -07:00
bad-universal-in-dyn-in-where-clause.rs
bad-universal-in-dyn-in-where-clause.stderr
bad-universal-in-impl-sig.rs
bad-universal-in-impl-sig.stderr
binder-on-bound.rs
binder-on-bound.stderr
bounds-on-assoc-in-trait.rs
bounds-on-assoc-in-trait.stderr
const-projection-err.gce.stderr
const-projection-err.rs
const-projection-err.stock.stderr
consts.rs Don't add associated type bound for non-types 2023-08-11 21:33:08 +00:00
consts.stderr Don't add associated type bound for non-types 2023-08-11 21:33:08 +00:00
do-not-look-at-parent-item-in-suggestion-for-type-param-of-current-assoc-item.rs Restrict param constraint suggestion 2023-10-26 18:33:03 +00:00
do-not-look-at-parent-item-in-suggestion-for-type-param-of-current-assoc-item.stderr Restrict param constraint suggestion 2023-10-26 18:33:03 +00:00
duplicate.rs
duplicate.stderr Add a note to duplicate diagnostics 2023-10-05 01:04:41 +00:00
dyn-impl-trait-type.rs Adjust UI tests for unit_bindings 2023-06-12 20:24:48 +08:00
dyn-rpit-and-let.rs Adjust UI tests for unit_bindings 2023-06-12 20:24:48 +08:00
elision.rs
elision.stderr Tweak wording of type errors involving type params 2023-10-18 23:53:18 +00:00
entails-sized-object-safety.rs
enum-bounds.rs
fn-apit.rs
fn-aux.rs
fn-dyn-apit.rs
fn-inline.rs
fn-where.rs
fn-wrap-apit.rs
handle-predicates-that-can-define-assoc-type.rs
hrtb.rs
implied-in-supertrait.rs Make associated type bounds in supertrait position implied 2023-06-27 18:28:07 +00:00
implied-region-constraints.rs
implied-region-constraints.stderr
inside-adt.rs
inside-adt.stderr
issue-61752.rs
issue-70292.rs
issue-71443-1.rs
issue-71443-1.stderr Point to where missing return type should go 2023-10-04 21:09:54 +00:00
issue-71443-2.rs
issue-73818.rs
issue-79949.rs
issue-81193.rs
issue-83017.rs
issue-99828.rs
issue-99828.stderr
issue-102335-ty.rs
issue-102335-ty.stderr
issue-104916.rs
issue-104916.stderr
missing-trait-bound-for-assoc-fails.rs
missing-trait-bound-for-assoc-fails.stderr
order-dependent-bounds-issue-54121.rs
overlaping-bound-suggestion.rs Add test for #115019 2023-08-21 19:59:27 +00:00
overlaping-bound-suggestion.stderr Do not emit invalid suggestion in E0191 when spans overlap 2023-08-22 15:51:12 +00:00
rpit.rs Adjust UI tests for unit_bindings 2023-06-12 20:24:48 +08:00
struct-bounds.rs
suggest-contraining-assoc-type-because-of-assoc-const.fixed Suggest constraining assoc types in more cases 2023-10-17 23:50:13 +00:00
suggest-contraining-assoc-type-because-of-assoc-const.rs Suggest constraining assoc types in more cases 2023-10-17 23:50:13 +00:00
suggest-contraining-assoc-type-because-of-assoc-const.stderr Suggest constraining assoc types in more cases 2023-10-17 23:50:13 +00:00
suggest-removing-impl.rs suggest removing impl in generic trait bound position 2023-08-29 20:27:38 +02:00
suggest-removing-impl.stderr suggest removing impl in generic trait bound position 2023-08-29 20:27:38 +02:00
supertrait-defines-ty.rs
supertrait-referencing-self.rs
supertrait-referencing.rs
supertrait-where-referencing-self.rs
trait-alias-impl-trait.rs Adjust UI tests for unit_bindings 2023-06-12 20:24:48 +08:00
trait-params.rs
traits-assoc-anonymized.rs
traits-assoc-type-macros.rs
type-alias.rs
type-alias.stderr
union-bounds.rs