// edition: 2021 | |
#![feature(return_type_notation)] | |
//~^ WARN the feature `return_type_notation` is incomplete | |
use std::future::Future; | |
trait Trait { | |
async fn method() {} | |
} | |
fn test<T: Trait<method() = Box<dyn Future<Output = ()>>>>() {} | |
//~^ ERROR return type notation is not allowed to use type equality | |
fn main() {} |