From 91b9ffeab0f8c491c81cd976c0d23d947cd6d12f Mon Sep 17 00:00:00 2001 From: Esteban Küber Date: Mon, 14 Aug 2023 13:09:53 +0000 Subject: Reorder fullfillment errors to keep more interesting ones first In `report_fullfillment_errors` push back `T: Sized`, `T: WellFormed` and coercion errors to the end of the list. The pre-existing deduplication logic eliminates redundant errors better that way, keeping the resulting output with fewer errors than before, while also having more detail. --- tests/ui/inference/multiple-impl-apply.rs | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'tests/ui/inference/multiple-impl-apply.rs') diff --git a/tests/ui/inference/multiple-impl-apply.rs b/tests/ui/inference/multiple-impl-apply.rs index e6a6b928e56..314fe0f2ae5 100644 --- a/tests/ui/inference/multiple-impl-apply.rs +++ b/tests/ui/inference/multiple-impl-apply.rs @@ -31,9 +31,7 @@ fn main() { let x: Baz = Baz { inner: 42 }; // DOESN'T Compile: Multiple options! - let y = x.into(); - //~^ ERROR E0282 - //~| ERROR E0283 + let y = x.into(); //~ ERROR E0283 let y_1: Foo = x.into(); let y_2: Bar = x.into(); -- cgit 1.4.1-3-g733a5