mirror of
https://github.com/rust-lang/rust.git
synced 2024-10-30 14:01:51 +00:00
19 lines
296 B
Rust
19 lines
296 B
Rust
//@ check-pass
|
|
//@ edition: 2021
|
|
|
|
// regression test for #116242.
|
|
use std::future;
|
|
|
|
fn main() {
|
|
let mut recv = future::ready(());
|
|
let _combined_fut = async {
|
|
let _ = || read(&mut recv);
|
|
};
|
|
|
|
drop(recv);
|
|
}
|
|
|
|
fn read<F: future::Future>(_: &mut F) -> F::Output {
|
|
todo!()
|
|
}
|