rust/tests/ui/impl-trait/in-trait/lifetime-in-associated-trait-bound.rs
2024-03-08 20:56:25 +00:00

18 lines
216 B
Rust

//@ check-pass
trait Trait {
type Type;
fn method(&self) -> impl Trait<Type: '_>;
}
impl Trait for () {
type Type = ();
fn method(&self) -> impl Trait<Type: '_> {
()
}
}
fn main() {}