diff options
| author | Michael Goulet <michael@errs.io> | 2025-04-09 17:25:46 +0000 |
|---|---|---|
| committer | Michael Goulet <michael@errs.io> | 2025-04-10 18:58:04 +0000 |
| commit | decd7ecd1e3640c4bada4f4a3de411a8d507d40c (patch) | |
| tree | e218ae1fdda6480bd5f7dc015d4966c01febfb8b /tests/ui/traits/next-solver/overflow | |
| parent | 62d5fb85ac64f034f031423cb747cf57ee14a048 (diff) | |
| download | rust-decd7ecd1e3640c4bada4f4a3de411a8d507d40c.tar.gz rust-decd7ecd1e3640c4bada4f4a3de411a8d507d40c.zip | |
Deeply normalize obligations in BestObligation
Diffstat (limited to 'tests/ui/traits/next-solver/overflow')
| -rw-r--r-- | tests/ui/traits/next-solver/overflow/recursive-self-normalization-2.rs | 2 | ||||
| -rw-r--r-- | tests/ui/traits/next-solver/overflow/recursive-self-normalization-2.stderr | 6 |
2 files changed, 4 insertions, 4 deletions
diff --git a/tests/ui/traits/next-solver/overflow/recursive-self-normalization-2.rs b/tests/ui/traits/next-solver/overflow/recursive-self-normalization-2.rs index 94a9484ecdc..b2a8c8cb4ae 100644 --- a/tests/ui/traits/next-solver/overflow/recursive-self-normalization-2.rs +++ b/tests/ui/traits/next-solver/overflow/recursive-self-normalization-2.rs @@ -13,7 +13,7 @@ fn needs_bar<S: Bar>() {} fn test<T: Foo1<Assoc1 = <T as Foo2>::Assoc2> + Foo2<Assoc2 = <T as Foo1>::Assoc1>>() { needs_bar::<T::Assoc1>(); - //~^ ERROR the trait bound `<T as Foo1>::Assoc1: Bar` is not satisfied + //~^ ERROR the trait bound `<T as Foo2>::Assoc2: Bar` is not satisfied } fn main() {} diff --git a/tests/ui/traits/next-solver/overflow/recursive-self-normalization-2.stderr b/tests/ui/traits/next-solver/overflow/recursive-self-normalization-2.stderr index 6f5111a6193..c4be47e3520 100644 --- a/tests/ui/traits/next-solver/overflow/recursive-self-normalization-2.stderr +++ b/tests/ui/traits/next-solver/overflow/recursive-self-normalization-2.stderr @@ -1,8 +1,8 @@ -error[E0277]: the trait bound `<T as Foo1>::Assoc1: Bar` is not satisfied +error[E0277]: the trait bound `<T as Foo2>::Assoc2: Bar` is not satisfied --> $DIR/recursive-self-normalization-2.rs:15:17 | LL | needs_bar::<T::Assoc1>(); - | ^^^^^^^^^ the trait `Bar` is not implemented for `<T as Foo1>::Assoc1` + | ^^^^^^^^^ the trait `Bar` is not implemented for `<T as Foo2>::Assoc2` | note: required by a bound in `needs_bar` --> $DIR/recursive-self-normalization-2.rs:12:17 @@ -11,7 +11,7 @@ LL | fn needs_bar<S: Bar>() {} | ^^^ required by this bound in `needs_bar` help: consider further restricting the associated type | -LL | fn test<T: Foo1<Assoc1 = <T as Foo2>::Assoc2> + Foo2<Assoc2 = <T as Foo1>::Assoc1>>() where <T as Foo1>::Assoc1: Bar { +LL | fn test<T: Foo1<Assoc1 = <T as Foo2>::Assoc2> + Foo2<Assoc2 = <T as Foo1>::Assoc1>>() where <T as Foo2>::Assoc2: Bar { | ++++++++++++++++++++++++++++++ error: aborting due to 1 previous error |
