summaryrefslogtreecommitdiffstats
path: root/tests/ui/generic-associated-types/issue-67510-pass.rs
diff options
context:
space:
mode:
Diffstat (limited to 'tests/ui/generic-associated-types/issue-67510-pass.rs')
-rw-r--r--tests/ui/generic-associated-types/issue-67510-pass.rs15
1 files changed, 15 insertions, 0 deletions
diff --git a/tests/ui/generic-associated-types/issue-67510-pass.rs b/tests/ui/generic-associated-types/issue-67510-pass.rs
new file mode 100644
index 000000000..66ce3e807
--- /dev/null
+++ b/tests/ui/generic-associated-types/issue-67510-pass.rs
@@ -0,0 +1,15 @@
+// revisions: base extended
+//[base] check-fail
+//[extended] check-pass
+
+#![cfg_attr(extended, feature(generic_associated_types_extended))]
+#![cfg_attr(extended, allow(incomplete_features))]
+
+trait X {
+ type Y<'a>;
+}
+
+fn _func1<'a>(_x: Box<dyn X<Y<'a>=&'a ()>>) {}
+//[base]~^ ERROR the trait `X` cannot be made into an object
+
+fn main() {}