2023-08-29 18:47:01 -05:00
|
|
|
// check-pass
|
|
|
|
|
2023-09-13 11:04:42 -05:00
|
|
|
#![feature(associated_type_bounds)]
|
2023-08-29 18:47:01 -05:00
|
|
|
|
|
|
|
trait Trait {
|
|
|
|
type Type;
|
|
|
|
|
|
|
|
fn method(&self) -> impl Trait<Type: '_>;
|
|
|
|
}
|
|
|
|
|
|
|
|
impl Trait for () {
|
|
|
|
type Type = ();
|
|
|
|
|
|
|
|
fn method(&self) -> impl Trait<Type: '_> {
|
|
|
|
()
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
fn main() {}
|