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