diff options
Diffstat (limited to 'tests/ui/generic-associated-types/issue-67510-pass.rs')
-rw-r--r-- | tests/ui/generic-associated-types/issue-67510-pass.rs | 15 |
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() {} |