//@ check-pass pub struct Wrapper(T); pub trait Foo { fn bar() -> Wrapper; } impl Foo for () { #[expect(refining_impl_trait)] fn bar() -> Wrapper { Wrapper(0) } } fn main() {}