summaryrefslogtreecommitdiffstats
path: root/tests/ui/associated-type-bounds/return-type-notation/equality.rs
blob: 0d6545cc2983fc1a0f6aa73f8cea526b7375eb9a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
// edition: 2021
// [next] compile-flags: -Zlower-impl-trait-in-trait-to-assoc-ty
// revisions: current next

#![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() {}