// edition: 2021 #![feature(return_type_notation)] //~^ WARN the feature `return_type_notation` is incomplete trait Foo { async fn bar() {} async fn baz() {} } fn test() where T: Foo, //~^ ERROR return type notation is not allowed for functions that have const parameters //~| ERROR return type notation is not allowed for functions that have type parameters { } fn main() {}