// issue #101663 // [next] compile-flags: -Zlower-impl-trait-in-trait-to-assoc-ty // revisions: current next #![feature(return_position_impl_trait_in_trait)] #![allow(incomplete_features)] trait Wf { type Output; } trait Uwu { fn nya() -> impl Wf>; //~^ ERROR the size for values of type `[u8]` cannot be known at compilation time fn nya2() -> impl Wf<[u8]>; //~^ ERROR the size for values of type `[u8]` cannot be known at compilation time fn nya3() -> impl Wf<(), Output = impl Wf>>; //~^ ERROR the size for values of type `[u8]` cannot be known at compilation time } fn main() {}