summaryrefslogtreecommitdiffstats
path: root/tests/ui/async-await/return-type-notation/super-method-bound.rs
blob: 6025cda2f5d4cb18d37d39f4a9aacb29c7bd3675 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
// edition:2021
// check-pass

#![feature(return_type_notation)]
//~^ WARN the feature `return_type_notation` is incomplete

trait Super<'a> {
    async fn test();
}
impl Super<'_> for () {
    async fn test() {}
}

trait Foo: for<'a> Super<'a> {}
impl Foo for () {}

fn test<T>()
where
    T: Foo<test(): Send>,
{
}

fn main() {
    test::<()>();
}