rust/tests/ui/generic-associated-types/issue-88405.rs

15 lines
268 B
Rust

//@ check-pass
trait SomeTrait {}
trait OtherTrait {
type Item;
}
trait ErrorSimpleExample {
type AssociatedType: SomeTrait;
type GatBounded<T: SomeTrait>;
type ErrorMinimal: OtherTrait<Item = Self::GatBounded<Self::AssociatedType>>;
}
fn main() {}