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