From 14be0ca52501f205947309d937f08b95684943b5 Mon Sep 17 00:00:00 2001 From: tyranron Date: Wed, 27 Mar 2024 16:23:52 +0200 Subject: [PATCH] Fix `compile_fail` tests --- tests/compile_fail/as_mut/renamed_generic.stderr | 5 +---- tests/compile_fail/as_ref/renamed_generic.stderr | 5 +---- 2 files changed, 2 insertions(+), 8 deletions(-) diff --git a/tests/compile_fail/as_mut/renamed_generic.stderr b/tests/compile_fail/as_mut/renamed_generic.stderr index f0838843..190faaed 100644 --- a/tests/compile_fail/as_mut/renamed_generic.stderr +++ b/tests/compile_fail/as_mut/renamed_generic.stderr @@ -5,10 +5,7 @@ error[E0599]: the method `as_mut` exists for struct `Baz`, but its trait bo | ------------- doesn't satisfy `Foo: AsMut>` ... 7 | struct Baz(Foo); - | ------------- - | | - | method `as_mut` not found for this struct - | doesn't satisfy `Baz: AsMut>` + | ------------- method `as_mut` not found for this struct because it doesn't satisfy `Baz: AsMut>` ... 11 | let _: &mut Bar = item.as_mut(); | ^^^^^^ method cannot be called on `Baz` due to unsatisfied trait bounds diff --git a/tests/compile_fail/as_ref/renamed_generic.stderr b/tests/compile_fail/as_ref/renamed_generic.stderr index 22fd78a5..07311720 100644 --- a/tests/compile_fail/as_ref/renamed_generic.stderr +++ b/tests/compile_fail/as_ref/renamed_generic.stderr @@ -5,10 +5,7 @@ error[E0599]: the method `as_ref` exists for struct `Baz`, but its trait bo | ------------- doesn't satisfy `Foo: AsRef>` ... 7 | struct Baz(Foo); - | ------------- - | | - | method `as_ref` not found for this struct - | doesn't satisfy `Baz: AsRef>` + | ------------- method `as_ref` not found for this struct because it doesn't satisfy `Baz: AsRef>` ... 11 | let _: &Bar = item.as_ref(); | ^^^^^^ method cannot be called on `Baz` due to unsatisfied trait bounds