about summary refs log tree commit diff
path: root/tests/ui/traits/next-solver/nested-alias-bound.rs
diff options
context:
space:
mode:
authorlcnr <rust@lcnr.de>2023-12-14 14:47:41 +0100
committerlcnr <rust@lcnr.de>2023-12-14 15:22:37 +0100
commit094707087171bb698d47aba807cd7d78c58e63ab (patch)
tree80d6a6e80c7b2833500cca646811f7068c8faad7 /tests/ui/traits/next-solver/nested-alias-bound.rs
parent11d16c4082be25fd42b48b37e199f18b4dfe51ed (diff)
downloadrust-094707087171bb698d47aba807cd7d78c58e63ab.tar.gz
rust-094707087171bb698d47aba807cd7d78c58e63ab.zip
consistently use "next solver" instead of "new solver"
Diffstat (limited to 'tests/ui/traits/next-solver/nested-alias-bound.rs')
-rw-r--r--tests/ui/traits/next-solver/nested-alias-bound.rs20
1 files changed, 20 insertions, 0 deletions
diff --git a/tests/ui/traits/next-solver/nested-alias-bound.rs b/tests/ui/traits/next-solver/nested-alias-bound.rs
new file mode 100644
index 00000000000..2e3de0ac66d
--- /dev/null
+++ b/tests/ui/traits/next-solver/nested-alias-bound.rs
@@ -0,0 +1,20 @@
+// compile-flags: -Znext-solver
+// check-pass
+
+trait A {
+    type A: B;
+}
+
+trait B {
+    type B: C;
+}
+
+trait C {}
+
+fn needs_c<T: C>() {}
+
+fn test<T: A>() {
+    needs_c::<<T::A as B>::B>();
+}
+
+fn main() {}