diff options
| author | lcnr <rust@lcnr.de> | 2023-12-14 14:47:41 +0100 | 
|---|---|---|
| committer | lcnr <rust@lcnr.de> | 2023-12-14 15:22:37 +0100 | 
| commit | 094707087171bb698d47aba807cd7d78c58e63ab (patch) | |
| tree | 80d6a6e80c7b2833500cca646811f7068c8faad7 /tests/ui/traits/next-solver/overflow/recursive-self-normalization-2.rs | |
| parent | 11d16c4082be25fd42b48b37e199f18b4dfe51ed (diff) | |
| download | rust-094707087171bb698d47aba807cd7d78c58e63ab.tar.gz rust-094707087171bb698d47aba807cd7d78c58e63ab.zip | |
consistently use "next solver" instead of "new solver"
Diffstat (limited to 'tests/ui/traits/next-solver/overflow/recursive-self-normalization-2.rs')
| -rw-r--r-- | tests/ui/traits/next-solver/overflow/recursive-self-normalization-2.rs | 20 | 
1 files changed, 20 insertions, 0 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 new file mode 100644 index 00000000000..327ef865de9 --- /dev/null +++ b/tests/ui/traits/next-solver/overflow/recursive-self-normalization-2.rs @@ -0,0 +1,20 @@ +// compile-flags: -Znext-solver + +trait Foo1 { + type Assoc1; +} + +trait Foo2 { + type Assoc2; +} + +trait Bar {} +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 overflow evaluating the requirement `<T as Foo1>::Assoc1: Bar` + //~| ERROR overflow evaluating the requirement `<T as Foo2>::Assoc2` +} + +fn main() {} | 
