// check-pass #![feature(return_position_impl_trait_in_trait)] #![allow(incomplete_features)] struct Wrapper(T); trait Foo { fn bar() -> Wrapper; } impl Foo for () { fn bar() -> Wrapper { Wrapper(0) } } fn main() {}