diff options
Diffstat (limited to 'src/test/ui/generic-associated-types/anonymize-bound-vars.rs')
-rw-r--r-- | src/test/ui/generic-associated-types/anonymize-bound-vars.rs | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/src/test/ui/generic-associated-types/anonymize-bound-vars.rs b/src/test/ui/generic-associated-types/anonymize-bound-vars.rs new file mode 100644 index 000000000..1ec9c6998 --- /dev/null +++ b/src/test/ui/generic-associated-types/anonymize-bound-vars.rs @@ -0,0 +1,14 @@ +// check-pass +// +// regression test for #98702 +#![feature(generic_associated_types)] + +trait Foo { + type Assoc<T>; +} + +impl Foo for () { + type Assoc<T> = [T; 2*2]; +} + +fn main() {} |