rust/tests/ui/generic-associated-types/bugs/issue-80626.rs

13 lines
148 B
Rust

//@ check-pass
trait Allocator {
type Allocated<T>;
}
enum LinkedList<A: Allocator> {
Head,
Next(A::Allocated<Self>),
}
fn main() {}