diff options
Diffstat (limited to 'tests/ui/generic-associated-types/bugs/issue-80626.rs')
-rw-r--r-- | tests/ui/generic-associated-types/bugs/issue-80626.rs | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/tests/ui/generic-associated-types/bugs/issue-80626.rs b/tests/ui/generic-associated-types/bugs/issue-80626.rs new file mode 100644 index 000000000..d6e18010f --- /dev/null +++ b/tests/ui/generic-associated-types/bugs/issue-80626.rs @@ -0,0 +1,12 @@ +// check-pass + +trait Allocator { + type Allocated<T>; +} + +enum LinkedList<A: Allocator> { + Head, + Next(A::Allocated<Self>), +} + +fn main() {} |