summaryrefslogtreecommitdiffstats
path: root/tests/ui/impl-trait/two_tait_defining_each_other3.rs
diff options
context:
space:
mode:
Diffstat (limited to 'tests/ui/impl-trait/two_tait_defining_each_other3.rs')
-rw-r--r--tests/ui/impl-trait/two_tait_defining_each_other3.rs5
1 files changed, 4 insertions, 1 deletions
diff --git a/tests/ui/impl-trait/two_tait_defining_each_other3.rs b/tests/ui/impl-trait/two_tait_defining_each_other3.rs
index 37f8ae1b8..55def937f 100644
--- a/tests/ui/impl-trait/two_tait_defining_each_other3.rs
+++ b/tests/ui/impl-trait/two_tait_defining_each_other3.rs
@@ -1,3 +1,6 @@
+// revisions: current next
+//[next] compile-flags: -Znext-solver
+//[next] check-pass
#![feature(type_alias_impl_trait)]
type A = impl Foo;
@@ -8,7 +11,7 @@ trait Foo {}
fn muh(x: A) -> B {
if false {
return x; // B's hidden type is A (opaquely)
- //~^ ERROR opaque type's hidden type cannot be another opaque type
+ //[current]~^ ERROR opaque type's hidden type cannot be another opaque type
}
Bar // A's hidden type is `Bar`, because all the return types are compared with each other
}