diff options
Diffstat (limited to 'tests/ui/generic-associated-types/parse/in-trait-impl.rs')
-rw-r--r-- | tests/ui/generic-associated-types/parse/in-trait-impl.rs | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/tests/ui/generic-associated-types/parse/in-trait-impl.rs b/tests/ui/generic-associated-types/parse/in-trait-impl.rs new file mode 100644 index 000000000..767098835 --- /dev/null +++ b/tests/ui/generic-associated-types/parse/in-trait-impl.rs @@ -0,0 +1,8 @@ +// check-pass +// compile-flags: -Z parse-only + +impl<T> Baz for T where T: Foo { + type Quux<'a> = <T as Foo>::Bar<'a, 'static>; +} + +fn main() {} |