about summary refs log tree commit diff
path: root/tests/ui/traits/multidispatch-convert-ambig-dest.rs
diff options
context:
space:
mode:
authorEsteban Küber <esteban@kuber.com.ar>2023-08-14 13:09:53 +0000
committerEsteban Küber <esteban@kuber.com.ar>2023-10-04 02:04:14 +0000
commit91b9ffeab0f8c491c81cd976c0d23d947cd6d12f (patch)
tree6b205f2c64d77221af8600edb9343968e05a49a4 /tests/ui/traits/multidispatch-convert-ambig-dest.rs
parent2817ece19c67a182c0b0aae402c0e57c8ed22dab (diff)
downloadrust-91b9ffeab0f8c491c81cd976c0d23d947cd6d12f.tar.gz
rust-91b9ffeab0f8c491c81cd976c0d23d947cd6d12f.zip
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.
Diffstat (limited to 'tests/ui/traits/multidispatch-convert-ambig-dest.rs')
-rw-r--r--tests/ui/traits/multidispatch-convert-ambig-dest.rs1
1 files changed, 0 insertions, 1 deletions
diff --git a/tests/ui/traits/multidispatch-convert-ambig-dest.rs b/tests/ui/traits/multidispatch-convert-ambig-dest.rs
index aa74e11c362..36e1e868fca 100644
--- a/tests/ui/traits/multidispatch-convert-ambig-dest.rs
+++ b/tests/ui/traits/multidispatch-convert-ambig-dest.rs
@@ -25,7 +25,6 @@ where T : Convert<U>
 fn a() {
     test(22, std::default::Default::default());
     //~^ ERROR type annotations needed
-    //~| ERROR type annotations needed
 }
 
 fn main() {}