blob: 6097c7f1073ed46c4b1b6fe9bcf5fb4cedba485d (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
// revisions: current next
//[current] known-bug: #109924
//[next] check-pass
//[next] compile-flags: -Znext-solver
// edition:2021
#![feature(return_type_notation)]
//[next]~^ WARN the feature `return_type_notation` is incomplete
trait Foo {
async fn bar(&self);
}
struct Bar;
impl Foo for Bar {
async fn bar(&self) {}
}
fn build<T>(_: T) where T: Foo<bar(): Send> {}
fn main() {
build(Bar);
}
|