blob: e581e5ffda7c355a5b8cfd834a980d7fe9c2c354 [file] [log] [blame]
// revisions: current next
//[current] known-bug: #109924
//[next] check-pass
//[next] compile-flags: -Ztrait-solver=next
// 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);
}