3 #![feature(return_position_impl_trait_in_trait, async_fn_in_trait)]
4 #![allow(incomplete_features)]
7 fn owo(x: ()) -> impl Sized;
12 //~^ ERROR method `owo` has an incompatible type for trait
16 async fn owo(x: ()) {}
19 impl AsyncUwu for () {
20 async fn owo(_: u8) {}
21 //~^ ERROR method `owo` has an incompatible type for trait
25 fn calm_down_please() -> impl Sized;
29 fn calm_down_please(_: (), _: (), _: ()) {}
30 //~^ ERROR method `calm_down_please` has 3 parameters but the declaration in trait `TooMuch::calm_down_please` has 0
34 fn come_on_a_little_more_effort(_: (), _: (), _: ()) -> impl Sized;
37 impl TooLittle for () {
38 fn come_on_a_little_more_effort() {}
39 //~^ ERROR method `come_on_a_little_more_effort` has 0 parameters but the declaration in trait `TooLittle::come_on_a_little_more_effort` has 3
43 fn early<'early, T>(x: &'early T) -> impl Sized;
46 impl Lifetimes for () {
47 fn early<'late, T>(_: &'late ()) {}
48 //~^ ERROR method `early` has an incompatible type for trait