blob: 75f757e90259ba1433a479150bbf43c22c05cdad (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
// edition: 2021
#![feature(return_type_notation, async_fn_in_trait)]
//~^ WARN the feature `return_type_notation` is incomplete
//~| WARN the feature `async_fn_in_trait` 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() {}
|