// check-pass use std::ops::Deref; trait Foo { fn foo() -> impl Deref> { &&() } } fn main() {}