summaryrefslogtreecommitdiffstats
path: root/tests/ui/associated-type-bounds/return-type-notation/non-rpitit.rs
blob: db5f6fe389ea7769967ec6e59ec56da5c78bd41a (plain)
1
2
3
4
5
6
7
8
9
10
11
#![feature(return_type_notation)]
//~^ WARN the feature `return_type_notation` is incomplete

trait Trait {
    fn method() {}
}

fn test<T: Trait<method(): Send>>() {}
//~^ ERROR  return type notation used on function that is not `async` and does not return `impl Trait`

fn main() {}