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