rust/src/test/ui/traits
Jack Huey b6c87c555f Implementation for 65853
This attempts to bring better error messages to invalid method calls, by applying some heuristics to identify common mistakes.

The algorithm is inspired by Levenshtein distance and longest common sub-sequence.   In essence, we treat the types of the function, and the types of the arguments you provided as two "words" and compute the edits to get from one to the other.

We then modify that algorithm to detect 4 cases:

 - A function input is missing
 - An extra argument was provided
 - The type of an argument is straight up invalid
 - Two arguments have been swapped
 - A subset of the arguments have been shuffled

(We detect the last two as separate cases so that we can detect two swaps, instead of 4 parameters permuted.)

It helps to understand this argument by paying special attention to terminology: "inputs" refers to the inputs being *expected* by the function, and "arguments" refers to what has been provided at the call site.

The basic sketch of the algorithm is as follows:

 - Construct a boolean grid, with a row for each argument, and a column for each input.  The cell [i, j] is true if the i'th argument could satisfy the j'th input.
 - If we find an argument that could satisfy no inputs, provided for an input that can't be satisfied by any other argument, we consider this an "invalid type".
 - Extra arguments are those that can't satisfy any input, provided for an input that *could* be satisfied by another argument.
 - Missing inputs are inputs that can't be satisfied by any argument, where the provided argument could satisfy another input
 - Swapped / Permuted arguments are identified with a cycle detection algorithm.

As each issue is found, we remove the relevant inputs / arguments and check for more issues.  If we find no issues, we match up any "valid" arguments, and start again.

Note that there's a lot of extra complexity:
 - We try to stay efficient on the happy path, only computing the diagonal until we find a problem, and then filling in the rest of the matrix.
 - Closure arguments are wrapped in a tuple and need to be unwrapped
 - We need to resolve closure types after the rest, to allow the most specific type constraints
 - We need to handle imported C functions that might be variadic in their inputs.

I tried to document a lot of this in comments in the code and keep the naming clear.
2022-04-16 02:26:56 -04:00
..
alias Compute a more precise span for opaque type impls 2022-04-12 12:28:31 +00:00
associated_type_bound Mention implementers of unsatisfied trait 2022-04-04 21:01:42 +00:00
auxiliary add regression test for issue 89119 2021-09-30 22:55:05 +02:00
bound Implementation for 65853 2022-04-16 02:26:56 -04:00
default-method Check that #[rustc_must_implement_one_of] is applied to a trait 2022-01-27 22:07:16 +03:00
inductive-overflow Suggest derivable trait on E0277 2022-04-05 11:14:32 +09:00
inheritance Refer to the TraitRef::identity in the message to be clearer 2022-04-04 21:06:35 +00:00
negative-impls Properly check regions on negative overlap check 2022-02-14 12:56:28 -03:00
object check all dyn obligations, actually 2022-03-14 17:59:31 -07:00
reservation-impl Mention implementers of unsatisfied trait 2022-04-04 21:01:42 +00:00
suggest-deferences Remove hack, fix fmt and tests 2022-04-04 21:14:08 +00:00
trait-upcasting Tweak wording 2021-12-10 03:08:25 +00:00
vtable Fix HashStable implementation on InferTy 2021-12-13 20:36:17 -08:00
wf-object Consistently use 'supertrait'. 2021-10-02 08:05:44 +07:00
alignment-gep-tup-like-1.rs Move some tests to more reasonable directories 2021-11-18 12:09:34 -03:00
anon-static-method.rs Organize trait test files 2021-02-09 14:19:35 +01:00
anon_trait_static_method_exe.rs
as-struct-constructor.rs Organize trait test files 2021-02-09 14:19:35 +01:00
as-struct-constructor.stderr Organize trait test files 2021-02-09 14:19:35 +01:00
assignability-trait.rs
assoc-type-in-superbad.rs Organize trait test files 2021-02-09 14:19:35 +01:00
assoc-type-in-superbad.stderr Organize trait test files 2021-02-09 14:19:35 +01:00
assoc-type-in-supertrait.rs Organize trait test files 2021-02-09 14:19:35 +01:00
astconv-cycle-between-and-type.rs Organize trait test files 2021-02-09 14:19:35 +01:00
augmented-assignments-trait.rs
bad-method-typaram-kind.rs Move some tests to more reasonable directories - 6 2021-04-17 18:53:54 -03:00
bad-method-typaram-kind.stderr Point at source of trait bound obligations in more places 2021-11-20 18:54:31 +00:00
bad-sized.rs Move some tests to more reasonable directories - 6 2021-04-17 18:53:54 -03:00
bad-sized.stderr Point at source of trait bound obligations in more places 2021-11-20 18:54:31 +00:00
bug-7183-generics.rs Move some tests to more reasonable directories 2021-09-15 14:03:27 -03:00
bug-7295.rs Move some tests to more reasonable directories 2021-11-14 14:38:42 -03:00
cache-issue-18209.rs Organize trait test files 2021-02-09 14:19:35 +01:00
cache-reached-depth-ice.rs Only assemble_candidates_from_impls for polarity Negative 2021-10-20 12:10:46 -03:00
cache-reached-depth-ice.stderr Only assemble_candidates_from_impls for polarity Negative 2021-10-20 12:10:46 -03:00
coercion-generic-bad.rs Organize trait test files 2021-02-09 14:19:35 +01:00
coercion-generic-bad.stderr Mention implementers of unsatisfied trait 2022-04-04 21:01:42 +00:00
coercion-generic-regions.rs Organize trait test files 2021-02-09 14:19:35 +01:00
coercion-generic-regions.stderr Organize trait test files 2021-02-09 14:19:35 +01:00
coercion-generic.rs Organize trait test files 2021-02-09 14:19:35 +01:00
coercion.rs Remove box syntax from most places in src/test outside of the issues dir 2021-09-26 04:07:44 +02:00
composition-trivial.rs Organize trait test files 2021-02-09 14:19:35 +01:00
conditional-dispatch.rs Remove box syntax from most places in src/test outside of the issues dir 2021-09-26 04:07:44 +02:00
conditional-model-fn.rs Organize trait test files 2021-02-09 14:19:35 +01:00
conservative_impl_trait.rs
copy-guessing.rs Organize trait test files 2021-02-09 14:19:35 +01:00
copy-impl-cannot-normalize.rs better ObligationCause for normalization errors in can_type_implement_copy 2022-02-24 08:30:38 -08:00
copy-impl-cannot-normalize.stderr better ObligationCause for normalization errors in can_type_implement_copy 2022-02-24 08:30:38 -08:00
cycle-cache-err-60010.rs Report cycle error using 'deepest' obligation in the cycle 2021-09-02 11:49:32 -05:00
cycle-cache-err-60010.stderr Report cycle error using 'deepest' obligation in the cycle 2021-09-02 11:49:32 -05:00
cycle-generic-bound.rs Move some tests to more reasonable directories 2021-11-18 12:09:34 -03:00
cycle-type-trait.rs Organize trait test files 2021-02-09 14:19:35 +01:00
duplicate-methods.rs Organize trait test files 2021-02-09 14:19:35 +01:00
duplicate-methods.stderr Organize trait test files 2021-02-09 14:19:35 +01:00
dyn-trait.rs
early-vtbl-resolution.rs Move some tests to more reasonable directories 2021-11-18 12:09:34 -03:00
elaborate-type-region.rs Organize trait test files 2021-02-09 14:19:35 +01:00
false-ambiguity-where-clause-builtin-bound.rs Organize trait test files 2021-02-09 14:19:35 +01:00
fmt-pointer-trait.rs
generic.rs Organize trait test files 2021-02-09 14:19:35 +01:00
impl-1.rs Organize trait test files 2021-02-09 14:19:35 +01:00
impl-1.stderr Organize trait test files 2021-02-09 14:19:35 +01:00
impl-2.rs Organize trait test files 2021-02-09 14:19:35 +01:00
impl-bounds-checking.rs Move some tests to more suitable subdirs 2021-03-06 18:24:53 +09:00
impl-bounds-checking.stderr Use note to point at bound introducing requirement 2021-08-16 17:47:22 +00:00
impl-can-not-have-untraitful-items.rs Organize trait test files 2021-02-09 14:19:35 +01:00
impl-can-not-have-untraitful-items.stderr Organize trait test files 2021-02-09 14:19:35 +01:00
impl-different-num-params.rs Organize trait test files 2021-02-09 14:19:35 +01:00
impl-different-num-params.stderr Organize trait test files 2021-02-09 14:19:35 +01:00
impl-evaluation-order.rs Revert change to evaluation order 2020-12-17 20:16:10 +00:00
impl-for-module.rs Organize trait test files 2021-02-09 14:19:35 +01:00
impl-for-module.stderr Organize trait test files 2021-02-09 14:19:35 +01:00
impl-implicit-trait.rs
impl-inherent-prefer-over-trait.rs
impl-method-mismatch.rs Organize trait test files 2021-02-09 14:19:35 +01:00
impl-method-mismatch.stderr Tweak assoc type obligation spans 2021-12-11 02:32:15 +00:00
impl-object-overlap-issue-23853.rs Organize trait test files 2021-02-09 14:19:35 +01:00
impl-of-supertrait-has-wrong-lifetime-parameters.rs Organize trait test files 2021-02-09 14:19:35 +01:00
impl-of-supertrait-has-wrong-lifetime-parameters.stderr Remove textual span from diagnostic string 2021-10-13 10:53:44 +00:00
impl.rs Fix use of bare trait objects everywhere 2021-03-18 02:18:58 +03:00
impl_trait_as_trait_return_position.rs Add test for #59023 2020-04-03 18:31:04 +02:00
infer-from-object-issue-26952.rs Organize trait test files 2021-02-09 14:19:35 +01:00
inherent-method-order.rs Organize trait test files 2021-02-09 14:19:35 +01:00
issue-3683.rs Move some tests to more reasonable directories 2021-01-31 19:46:46 -03:00
issue-3973.rs Move some tests to more reasonable directories 2021-11-06 15:35:20 -03:00
issue-3973.stderr Move some tests to more reasonable directories 2021-11-06 15:35:20 -03:00
issue-6128.rs Remove box syntax from most places in src/test outside of the issues dir 2021-09-26 04:07:44 +02:00
issue-6334.rs Move some tests to more reasonable directories - 2 2021-01-16 19:46:54 -03:00
issue-9394-inherited-calls.rs Organize trait test files 2021-02-09 14:19:35 +01:00
issue-20692.rs Move some tests to more reasonable directories 2021-09-15 14:03:27 -03:00
issue-20692.stderr Move some tests to more reasonable directories 2021-09-15 14:03:27 -03:00
issue-22019.rs Organize trait test files 2021-02-09 14:19:35 +01:00
issue-22110.rs Organize trait test files 2021-02-09 14:19:35 +01:00
issue-22655.rs Organize trait test files 2021-02-09 14:19:35 +01:00
issue-23003-overflow.rs Organize trait test files 2021-02-09 14:19:35 +01:00
issue-23003.rs Organize trait test files 2021-02-09 14:19:35 +01:00
issue-23825.rs Move some tests to more reasonable directories 2021-09-15 14:03:27 -03:00
issue-24010.rs Move some tests to more reasonable directories 2021-11-06 15:35:20 -03:00
issue-26339.rs Organize trait test files 2021-02-09 14:19:35 +01:00
issue-28576.rs Move some tests to more suitable subdirs 2021-03-06 18:24:53 +09:00
issue-28576.stderr Move some tests to more suitable subdirs 2021-03-06 18:24:53 +09:00
issue-33140-hack-boundaries.rs Move some tests to more reasonable directories 2021-01-31 19:46:46 -03:00
issue-33140-hack-boundaries.stderr Remove trailing : from E0119 message 2021-04-06 18:16:11 -07:00
issue-33140.rs Move some tests to more suitable subdirs 2021-03-06 18:24:53 +09:00
issue-33140.stderr Remove trailing : from E0119 message 2021-04-06 18:16:11 -07:00
issue-38604.rs Move some tests to more reasonable directories 2021-11-06 15:35:20 -03:00
issue-38604.stderr Move some tests to more reasonable directories 2021-11-06 15:35:20 -03:00
issue-52893.rs add some more testcases 2021-10-12 08:56:05 +02:00
issue-52893.stderr Implementation for 65853 2022-04-16 02:26:56 -04:00
issue-56202.rs Move some tests to more reasonable directories 2021-01-31 19:46:46 -03:00
issue-56488.rs Move some tests to more reasonable directories 2021-01-31 19:46:46 -03:00
issue-59029-1.rs Move some tests to more reasonable directories 2021-11-06 15:35:20 -03:00
issue-59029-1.stderr Move some tests to more reasonable directories 2021-11-06 15:35:20 -03:00
issue-59029-2.rs Move some tests to more reasonable directories 2021-01-31 19:46:46 -03:00
issue-65284-suggest-generic-trait-bound.rs Move some tests to more reasonable directories 2021-01-31 19:46:46 -03:00
issue-65284-suggest-generic-trait-bound.stderr Modify structured suggestion output 2021-08-11 09:46:24 +00:00
issue-65673.rs Move some tests to more reasonable directories - 2 2021-01-16 19:46:54 -03:00
issue-65673.stderr Tweak assoc type obligation spans 2021-12-11 02:32:15 +00:00
issue-68295.rs add some more testcases 2021-10-12 08:56:05 +02:00
issue-68295.stderr add some more testcases 2021-10-12 08:56:05 +02:00
issue-70944.rs Add test for issue-70944 2020-10-18 07:57:24 +09:00
issue-71136.rs Organize trait test files 2021-02-09 14:19:35 +01:00
issue-71136.stderr Suggest derivable trait on E0277 2022-04-05 11:14:32 +09:00
issue-72410.rs Fix debug assertion in typeck 2020-07-18 12:20:51 +09:00
issue-72410.stderr Modify structured suggestion output 2021-08-11 09:46:24 +00:00
issue-72455.rs Move some tests to more reasonable directories 2021-11-06 15:35:20 -03:00
issue-75627.rs Remove error message in specific case 2020-08-30 19:39:51 +00:00
issue-75627.stderr Suggest adding a type parameter for impls 2021-05-05 18:59:37 +02:00
issue-77982.rs Point at overlapping impls when type annotations are needed 2021-10-24 18:33:04 +00:00
issue-77982.stderr further update fuzzy_match_tys 2022-02-14 07:37:15 +01:00
issue-78372.rs Move some tests to more reasonable directories - 5 2021-03-20 11:41:24 -03:00
issue-78372.stderr no overlap errors after failing the orphan check 2021-11-10 15:10:19 +01:00
issue-78632.rs add regression test for issue #78632 2021-06-15 21:32:13 -07:00
issue-79458.rs Add regression test for #79458 2020-12-01 13:30:09 -06:00
issue-79458.stderr Dedup logic and improve output for other types that impl trait 2022-04-04 21:06:35 +00:00
issue-83538-tainted-cache-after-cycle.rs Only assemble_candidates_from_impls for polarity Negative 2021-10-20 12:10:46 -03:00
issue-83538-tainted-cache-after-cycle.stderr Only assemble_candidates_from_impls for polarity Negative 2021-10-20 12:10:46 -03:00
issue-84399-bad-fresh-caching.rs Add regression test 2021-05-01 17:55:19 -04:00
issue-85360-eval-obligation-ice.rs Add test case that evals to EvaluatedToOkModuloRegions 2021-12-03 20:25:21 -05:00
issue-85360-eval-obligation-ice.stderr Add test case that evals to EvaluatedToOkModuloRegions 2021-12-03 20:25:21 -05:00
issue-85735.rs Remove invalid suggestion involving Fn trait bound 2021-08-03 21:31:34 +02:00
issue-85735.stderr Point at source of trait bound obligations in more places 2021-11-20 18:54:31 +00:00
issue-89119.rs add regression test for issue 89119 2021-09-30 22:55:05 +02:00
issue-90195-2.rs Add test cases 2021-10-28 14:25:46 +00:00
issue-90195.rs Add test cases 2021-10-28 14:25:46 +00:00
issue-90662-projection-caching.rs Remove 'speculative evaluation' of predicates 2021-12-17 17:00:03 -05:00
issue-91594.rs Add test for old ICE in #91594 2022-01-28 18:42:23 -05:00
issue-91594.stderr Mention implementers of unsatisfied trait 2022-04-04 21:01:42 +00:00
issue-92292.rs Add UI test for #92292 2021-12-29 16:06:26 -08:00
issue-95311.rs when checking pointee metadata, canonicalize the Sized query 2022-03-25 12:37:58 -07:00
issue-95898.rs fix: wrong trait import suggestion for T: 2022-04-13 11:02:01 -03:00
issue-95898.stderr fix: wrong trait import suggestion for T: 2022-04-13 11:02:01 -03:00
item-inside-macro.rs Organize trait test files 2021-02-09 14:19:35 +01:00
item-privacy.rs Fix use of bare trait objects everywhere 2021-03-18 02:18:58 +03:00
item-privacy.stderr Move object safety suggestions to the end of the error 2021-09-15 14:48:53 +00:00
kindck-owned-contains-1.rs Remove box syntax from most places in src/test outside of the issues dir 2021-09-26 04:07:44 +02:00
map-types.rs Move some tests to more reasonable directories 2021-11-18 12:09:34 -03:00
map-types.stderr Dedup logic and improve output for other types that impl trait 2022-04-04 21:06:35 +00:00
matching-lifetimes.rs Organize trait test files 2021-02-09 14:19:35 +01:00
matching-lifetimes.stderr Remove textual span from diagnostic string 2021-10-13 10:53:44 +00:00
method-private.rs Organize trait test files 2021-02-09 14:19:35 +01:00
method-private.stderr Various diagnostics clean ups/tweaks 2021-07-19 08:43:35 -07:00
monad.rs Move some tests to more reasonable directories 2021-11-14 14:38:42 -03:00
monomorphized-callees-with-ty-params-3314.rs Move some tests to more reasonable directories 2021-11-14 14:38:42 -03:00
multidispatch-bad.rs Organize trait test files 2021-02-09 14:19:35 +01:00
multidispatch-bad.stderr Implementation for 65853 2022-04-16 02:26:56 -04:00
multidispatch-conditional-impl-not-considered.rs Move some tests to more reasonable directories 2021-11-14 14:38:42 -03:00
multidispatch-convert-ambig-dest.rs Point at overlapping impls when type annotations are needed 2021-10-24 18:33:04 +00:00
multidispatch-convert-ambig-dest.stderr Point at overlapping impls when type annotations are needed 2021-10-24 18:33:04 +00:00
multidispatch-infer-convert-target.rs Organize trait test files 2021-02-09 14:19:35 +01:00
multidispatch1.rs Move some tests to more reasonable directories 2021-11-14 14:38:42 -03:00
multidispatch2.rs Move some tests to more reasonable directories 2021-11-14 14:38:42 -03:00
mutual-recursion-issue-75860.rs Add regr. test for mutual recursion 2020-12-29 05:22:25 +00:00
mutual-recursion-issue-75860.stderr Improve help for recursion limit errors 2021-09-28 22:17:13 +02:00
no-fallback-multiple-impls.rs don't report int/float ambiguity when we have previous errors 2022-04-06 21:27:46 -07:00
no-fallback-multiple-impls.stderr don't report int/float ambiguity when we have previous errors 2022-04-06 21:27:46 -07:00
no_send-struct.rs Move some tests to more reasonable directories 2021-11-18 12:09:34 -03:00
no_send-struct.stderr Move some tests to more reasonable directories 2021-11-18 12:09:34 -03:00
normalize-supertrait.rs Consistently use 'supertrait'. 2021-10-02 08:05:44 +07:00
object-does-not-impl-trait.rs Move some tests to more reasonable directories 2021-11-06 15:35:20 -03:00
object-does-not-impl-trait.stderr Move some tests to more reasonable directories 2021-11-06 15:35:20 -03:00
object-one-type-two-traits.rs Remove box syntax from most places in src/test outside of the issues dir 2021-09-26 04:07:44 +02:00
objects-owned-object-borrowed-method-headerless.rs Move some tests to more reasonable directories 2021-11-14 14:38:42 -03:00
operator-overloading-issue-52025.rs add regression test for issue #52025 2021-06-22 02:03:52 -07:00
overlap-not-permitted-for-builtin-trait.rs introduce negative_impls feature gate and document 2020-03-26 06:52:55 -04:00
overlap-not-permitted-for-builtin-trait.stderr Remove trailing : from E0119 message 2021-04-06 18:16:11 -07:00
overlap-permitted-for-marker-traits.rs introduce negative_impls feature gate and document 2020-03-26 06:52:55 -04:00
param-without-lifetime-constraint.rs Organize trait test files 2021-02-09 14:19:35 +01:00
param-without-lifetime-constraint.stderr nice_region_error: Include lifetime placeholders in error output 2021-10-22 15:26:20 -07:00
parameterized-with-bounds.rs Organize trait test files 2021-02-09 14:19:35 +01:00
pointee-deduction.rs Normalize struct tail type when checking Pointee trait 2021-12-24 01:41:18 -08:00
pointee-tail-is-generic-errors.rs Revert "Auto merge of #93893 - oli-obk:sad_revert, r=oli-obk" 2022-03-28 16:27:14 +00:00
pointee-tail-is-generic-errors.stderr Revert "Auto merge of #93893 - oli-obk:sad_revert, r=oli-obk" 2022-03-28 16:27:14 +00:00
pointee-tail-is-generic.rs opaque types may also be sized 2022-03-03 21:55:47 -08:00
principal-less-objects.rs Organize trait test files 2021-02-09 14:19:35 +01:00
privacy.rs Organize trait test files 2021-02-09 14:19:35 +01:00
project-modulo-regions.rs Fix incorrect usage of EvaluatedToOk when evaluating TypeOutlives 2021-11-28 15:03:58 -05:00
project-modulo-regions.with_clause.stderr Fix incorrect usage of EvaluatedToOk when evaluating TypeOutlives 2021-11-28 15:03:58 -05:00
project-modulo-regions.without_clause.stderr Fix incorrect usage of EvaluatedToOk when evaluating TypeOutlives 2021-11-28 15:03:58 -05:00
region-pointer-simple.rs Organize trait test files 2021-02-09 14:19:35 +01:00
resolution-in-overloaded-op.rs Organize trait test files 2021-02-09 14:19:35 +01:00
resolution-in-overloaded-op.stderr Modify structured suggestion output 2021-08-11 09:46:24 +00:00
safety-fn-body.mir.stderr Check for raw pointer dereference in THIR unsafeck 2021-05-20 00:01:05 +02:00
safety-fn-body.rs Check for raw pointer dereference in THIR unsafeck 2021-05-20 00:01:05 +02:00
safety-fn-body.thir.stderr Replace more "NULL" with "null" 2021-05-24 12:59:33 +02:00
safety-inherent-impl.rs Organize trait test files 2021-02-09 14:19:35 +01:00
safety-inherent-impl.stderr Organize trait test files 2021-02-09 14:19:35 +01:00
safety-ok-cc.rs Organize trait test files 2021-02-09 14:19:35 +01:00
safety-ok.rs Organize trait test files 2021-02-09 14:19:35 +01:00
safety-trait-impl-cc.rs Organize trait test files 2021-02-09 14:19:35 +01:00
safety-trait-impl-cc.stderr Organize trait test files 2021-02-09 14:19:35 +01:00
safety-trait-impl.rs Organize trait test files 2021-02-09 14:19:35 +01:00
safety-trait-impl.stderr Organize trait test files 2021-02-09 14:19:35 +01:00
self-without-lifetime-constraint.rs Account for Self as a type param 2020-05-28 10:36:21 -07:00
self-without-lifetime-constraint.stderr nice_region_error: Include lifetime placeholders in error output 2021-10-22 15:26:20 -07:00
static-method-generic-inference.rs Organize trait test files 2021-02-09 14:19:35 +01:00
static-method-generic-inference.stderr Do not mention associated items when they introduce an obligation 2021-11-20 19:19:31 +00:00
static-method-overwriting.rs Organize trait test files 2021-02-09 14:19:35 +01:00
static-outlives-a-where-clause.rs Organize trait test files 2021-02-09 14:19:35 +01:00
staticness-mismatch.rs Move some tests to more reasonable directories 2021-11-14 14:38:42 -03:00
staticness-mismatch.stderr Move some tests to more reasonable directories 2021-11-14 14:38:42 -03:00
suggest-where-clause.rs Organize trait test files 2021-02-09 14:19:35 +01:00
suggest-where-clause.stderr Do not mention associated items when they introduce an obligation 2021-11-20 19:19:31 +00:00
superdefault-generics.rs Organize trait test files 2021-02-09 14:19:35 +01:00
syntax-polarity.rs Organize trait test files 2021-02-09 14:19:35 +01:00
syntax-trait-polarity.rs Move some tests to more reasonable directories 2021-11-06 15:35:20 -03:00
syntax-trait-polarity.stderr Move some tests to more reasonable directories 2021-11-06 15:35:20 -03:00
test-2.rs don't report int/float ambiguity when we have previous errors 2022-04-06 21:27:46 -07:00
test-2.stderr don't report int/float ambiguity when we have previous errors 2022-04-06 21:27:46 -07:00
test.rs Organize trait test files 2021-02-09 14:19:35 +01:00
test.stderr Organize trait test files 2021-02-09 14:19:35 +01:00
to-str.rs Organize trait test files 2021-02-09 14:19:35 +01:00
trait-or-new-type-instead.rs
trait-or-new-type-instead.stderr
typeclasses-eq-example-static.rs Move some tests to more reasonable directories 2021-11-14 14:38:42 -03:00
typeclasses-eq-example.rs Move some tests to more reasonable directories 2021-11-14 14:38:42 -03:00
ufcs-object.rs Organize trait test files 2021-02-09 14:19:35 +01:00
use-before-def.rs Organize trait test files 2021-02-09 14:19:35 +01:00
vtable-res-trait-param.rs Move some tests to more reasonable directories 2021-11-14 14:38:42 -03:00
vtable-res-trait-param.stderr Point at source of trait bound obligations in more places 2021-11-20 18:54:31 +00:00
where-clause-vs-impl.rs Organize trait test files 2021-02-09 14:19:35 +01:00
with-bounds-default.rs Organize trait test files 2021-02-09 14:19:35 +01:00
with-dst.rs Organize trait test files 2021-02-09 14:19:35 +01:00