mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-27 01:04:03 +00:00
26 lines
374 B
Rust
26 lines
374 B
Rust
//@ known-bug: rust-lang/rust#123276
|
|
//@ edition:2021
|
|
|
|
async fn create_task() {
|
|
_ = Some(async { bind(documentation_filter()) });
|
|
}
|
|
|
|
async fn bind<Fut, F: Filter<Future = Fut>>(_: F) {}
|
|
|
|
fn documentation_filter() -> impl Filter {
|
|
AndThen
|
|
}
|
|
|
|
trait Filter {
|
|
type Future;
|
|
}
|
|
|
|
struct AndThen;
|
|
|
|
impl Filter for AndThen
|
|
where
|
|
Foo: Filter,
|
|
{
|
|
type Future = ();
|
|
}
|