rust/tests/ui/wf
Esteban Küber eeadffd926 When more than a single impl and less than 4 could apply, point at them
```
error[E0277]: the trait bound `[[u16; 3]; 2]: Bar` is not satisfied
  --> $DIR/issue-67185-2.rs:21:6
   |
LL | impl Foo for FooImpl {}
   |      ^^^ the trait `Bar` is not implemented for `[[u16; 3]; 2]`
   |
help: the following other types implement trait `Bar`
  --> $DIR/issue-67185-2.rs:9:1
   |
LL | impl Bar for [u16; 4] {}
   | ^^^^^^^^^^^^^^^^^^^^^ `[u16; 4]`
LL | impl Bar for [[u16; 3]; 3] {}
   | ^^^^^^^^^^^^^^^^^^^^^^^^^^ `[[u16; 3]; 3]`
note: required by a bound in `Foo`
  --> $DIR/issue-67185-2.rs:14:30
   |
LL | trait Foo
   |       --- required by a bound in this trait
LL | where
LL |     [<u8 as Baz>::Quaks; 2]: Bar,
   |                              ^^^ required by this bound in `Foo`
```
2025-10-31 20:44:01 +00:00
..
check-wf-of-normalized-signature.rs Deeply normalize in the new solver in WF 2025-05-05 15:52:38 +00:00
closure-wf.rs Add test 2024-04-25 10:51:54 -04:00
closure-wf.stderr Add test 2024-04-25 10:51:54 -04:00
conflicting-impls.rs Silence some follow-up errors on trait impls in case the trait has conflicting or otherwise incoherent impls 2024-04-09 10:23:58 +00:00
conflicting-impls.stderr Silence some follow-up errors on trait impls in case the trait has conflicting or otherwise incoherent impls 2024-04-09 10:23:58 +00:00
hir-wf-canonicalized.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
hir-wf-canonicalized.stderr On E0277, point at type that doesn't implement bound 2025-08-22 17:55:15 +00:00
hir-wf-check-erase-regions.nll.stderr When more than a single impl and less than 4 could apply, point at them 2025-10-31 20:44:01 +00:00
hir-wf-check-erase-regions.polonius.stderr When more than a single impl and less than 4 could apply, point at them 2025-10-31 20:44:01 +00:00
hir-wf-check-erase-regions.rs update test expectations for boring locals + dropckoutlives interactions 2025-08-08 14:10:41 +00:00
ice-hir-wf-check-anon-const-issue-122199.rs Fortify generic param default checks 2025-08-06 01:26:26 +02:00
ice-hir-wf-check-anon-const-issue-122199.stderr Fortify generic param default checks 2025-08-06 01:26:26 +02:00
ice-hir-wf-check-anon-const-issue-122989.rs Introduce feature(generic_const_parameter_types) 2025-02-28 20:43:15 +00:00
ice-hir-wf-check-anon-const-issue-122989.stderr bless tests with new lint messages 2025-08-19 21:27:10 +02:00
ice-hir-wf-issue-135341.rs remove unnecessary assertion for reference error 2025-01-17 15:41:05 +08:00
ice-hir-wf-issue-135341.stderr remove unnecessary assertion for reference error 2025-01-17 15:41:05 +08:00
ice-wf-missing-span-in-error-130012.rs Fix ICE caused by missing span in a region error 2024-09-09 12:27:36 +05:30
ice-wf-missing-span-in-error-130012.stderr Fix ICE caused by missing span in a region error 2024-09-09 12:27:36 +05:30
issue-48638.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
issue-87495.rs Refactor dyn-compatibility error and suggestions 2025-01-22 09:20:57 -08:00
issue-87495.stderr Merge unboxed trait object error suggestion into regular dyn incompat error 2025-06-13 13:54:06 +00:00
issue-95665.rs UI tests: add missing diagnostic kinds where possible 2025-04-08 23:06:31 +03:00
issue-95665.stderr
issue-96810.rs
issue-96810.stderr reword trait bound suggestion message to include the bounds 2024-12-07 21:26:20 +00:00
issue-103573.rs
issue-103573.stderr
issue-110157.rs return ty::Error when equating ty::Error 2024-02-19 23:54:49 +00:00
issue-110157.stderr return ty::Error when equating ty::Error 2024-02-19 23:54:49 +00:00
range-expr-root-of-constant-issue-40749.rs Mark range expr with desugaring 2025-10-21 10:04:34 -05:00
range-expr-root-of-constant-issue-40749.stderr Rename and Move some UI tests to more suitable subdirs 2025-02-04 17:02:37 +05:30
unnormalized-projection-guides-inference.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
wf-array-elem-sized.rs
wf-array-elem-sized.stderr
wf-associated-const.rs
wf-associated-const.stderr
wf-complex-assoc-type.rs
wf-complex-assoc-type.stderr
wf-const-type.rs Check that return type is WF in typeck 2024-03-06 16:51:17 +05:30
wf-const-type.stderr Remove detail from label/note that is already available in other note 2024-10-29 16:26:57 +00:00
wf-dyn-incompatible.rs UI tests: Rename "object safe" to "dyn compatible" 2024-10-10 01:13:29 +02:00
wf-dyn-incompatible.stderr Use more detailed spans in dyn compat errors within bodies 2025-05-27 08:18:11 +00:00
wf-enum-bound.rs
wf-enum-bound.stderr Use trait name instead of full constraint in suggestion message 2024-12-07 21:29:58 +00:00
wf-enum-fields-struct-variant.rs
wf-enum-fields-struct-variant.stderr Use trait name instead of full constraint in suggestion message 2024-12-07 21:29:58 +00:00
wf-enum-fields.rs
wf-enum-fields.stderr Use trait name instead of full constraint in suggestion message 2024-12-07 21:29:58 +00:00
wf-fn-def-check-sig-1.rs rebase 2024-04-04 02:14:57 +01:00
wf-fn-def-check-sig-1.stderr rebase 2024-04-04 02:14:57 +01:00
wf-fn-def-check-sig-2.rs check FnDef return type for WF 2024-04-04 01:55:29 +01:00
wf-fn-def-check-sig-2.stderr rebase 2024-04-04 02:14:57 +01:00
wf-fn-where-clause.rs
wf-fn-where-clause.stderr Compiler: Finalize dyn compatibility renaming 2025-01-26 21:20:31 +01:00
wf-foreign-fn-decl-ret.rs
wf-foreign-fn-decl-ret.stderr
wf-impl-associated-type-region.rs
wf-impl-associated-type-region.stderr Avoid looking at HIR for trait and impl items 2025-06-30 08:45:43 +00:00
wf-impl-associated-type-trait.rs
wf-impl-associated-type-trait.stderr reword trait bound suggestion message to include the bounds 2024-12-07 21:26:20 +00:00
wf-impl-self-type.rs
wf-impl-self-type.stderr
wf-in-fn-arg.rs
wf-in-fn-arg.stderr Use trait name instead of full constraint in suggestion message 2024-12-07 21:29:58 +00:00
wf-in-fn-ret.rs Continue compilation after check_mod_type_wf errors 2024-02-14 11:00:30 +00:00
wf-in-fn-ret.stderr Use trait name instead of full constraint in suggestion message 2024-12-07 21:29:58 +00:00
wf-in-fn-type-arg.rs
wf-in-fn-type-arg.stderr Use trait name instead of full constraint in suggestion message 2024-12-07 21:29:58 +00:00
wf-in-fn-type-ret.rs
wf-in-fn-type-ret.stderr Use trait name instead of full constraint in suggestion message 2024-12-07 21:29:58 +00:00
wf-in-fn-type-static.rs
wf-in-fn-type-static.stderr
wf-in-fn-where-clause.rs
wf-in-fn-where-clause.stderr Use trait name instead of full constraint in suggestion message 2024-12-07 21:29:58 +00:00
wf-in-foreign-fn-decls-issue-80468.rs Stop being so bail-y in candidate assembly 2024-11-21 01:35:34 +00:00
wf-in-foreign-fn-decls-issue-80468.stderr Stop being so bail-y in candidate assembly 2024-11-21 01:35:34 +00:00
wf-in-obj-type-static.rs
wf-in-obj-type-static.stderr
wf-in-obj-type-trait.rs
wf-in-obj-type-trait.stderr Use trait name instead of full constraint in suggestion message 2024-12-07 21:29:58 +00:00
wf-in-where-clause-static.current.stderr reword note 2025-09-28 20:55:35 +00:00
wf-in-where-clause-static.next.stderr reword note 2025-09-28 20:55:35 +00:00
wf-in-where-clause-static.rs Enforce supertrait outlives obligations hold when confirming impl 2024-08-05 09:55:14 -04:00
wf-inherent-impl-method-where-clause.rs
wf-inherent-impl-method-where-clause.stderr Use trait name instead of full constraint in suggestion message 2024-12-07 21:29:58 +00:00
wf-inherent-impl-where-clause.rs
wf-inherent-impl-where-clause.stderr Use trait name instead of full constraint in suggestion message 2024-12-07 21:29:58 +00:00
wf-misc-methods-issue-28609.rs
wf-misc-methods-issue-28609.stderr
wf-normalization-sized.next.stderr Deeply normalize in the new solver in WF 2025-05-05 15:52:38 +00:00
wf-normalization-sized.rs Deeply normalize in the new solver in WF 2025-05-05 15:52:38 +00:00
wf-outlives-ty-in-fn-or-trait.rs
wf-outlives-ty-in-fn-or-trait.stderr Avoid looking at HIR for trait and impl items 2025-06-30 08:45:43 +00:00
wf-packed-on-proj-of-type-as-unimpl-trait.rs
wf-packed-on-proj-of-type-as-unimpl-trait.stderr On E0277, point at type that doesn't implement bound 2025-08-22 17:55:15 +00:00
wf-static-method.rs
wf-static-method.stderr
wf-static-type.rs Check statics' type in type_of. 2025-07-25 23:39:26 +00:00
wf-static-type.stderr Check statics' type in type_of. 2025-07-25 23:39:26 +00:00
wf-struct-bound.rs
wf-struct-bound.stderr Use trait name instead of full constraint in suggestion message 2024-12-07 21:29:58 +00:00
wf-struct-field.rs
wf-struct-field.stderr Use trait name instead of full constraint in suggestion message 2024-12-07 21:29:58 +00:00
wf-trait-associated-type-bound.rs
wf-trait-associated-type-bound.stderr Use trait name instead of full constraint in suggestion message 2024-12-07 21:29:58 +00:00
wf-trait-associated-type-region.rs
wf-trait-associated-type-region.stderr Avoid looking at HIR for trait and impl items 2025-06-30 08:45:43 +00:00
wf-trait-associated-type-trait.rs
wf-trait-associated-type-trait.stderr
wf-trait-bound.rs
wf-trait-bound.stderr Use trait name instead of full constraint in suggestion message 2024-12-07 21:29:58 +00:00
wf-trait-default-fn-arg.rs
wf-trait-default-fn-arg.stderr
wf-trait-default-fn-ret.rs update comment 2025-01-30 11:56:29 +01:00
wf-trait-default-fn-ret.stderr update comment 2025-01-30 11:56:29 +01:00
wf-trait-default-fn-where-clause.rs
wf-trait-default-fn-where-clause.stderr
wf-trait-fn-arg.current.stderr Don't pick T: FnPtr nested goals 2025-01-22 06:55:38 +00:00
wf-trait-fn-arg.next.stderr Manually walk into WF obligations in BestObligation proof tree visitor 2025-01-31 18:21:58 +00:00
wf-trait-fn-arg.rs Don't pick T: FnPtr nested goals 2025-01-22 06:55:38 +00:00
wf-trait-fn-ret.current.stderr Don't pick T: FnPtr nested goals 2025-01-22 06:55:38 +00:00
wf-trait-fn-ret.next.stderr Manually walk into WF obligations in BestObligation proof tree visitor 2025-01-31 18:21:58 +00:00
wf-trait-fn-ret.rs Don't pick T: FnPtr nested goals 2025-01-22 06:55:38 +00:00
wf-trait-fn-where-clause.current.stderr Don't pick T: FnPtr nested goals 2025-01-22 06:55:38 +00:00
wf-trait-fn-where-clause.next.stderr Manually walk into WF obligations in BestObligation proof tree visitor 2025-01-31 18:21:58 +00:00
wf-trait-fn-where-clause.rs Don't pick T: FnPtr nested goals 2025-01-22 06:55:38 +00:00
wf-trait-superbound.rs
wf-trait-superbound.stderr Use trait name instead of full constraint in suggestion message 2024-12-07 21:29:58 +00:00