// check-pass #![feature(associated_type_bounds)] trait Trait { type Type; fn method(&self) -> impl Trait; } impl Trait for () { type Type = (); fn method(&self) -> impl Trait { () } } fn main() {}