mirror of
https://github.com/rust-lang/rust.git
synced 2024-12-04 04:39:16 +00:00
15 lines
209 B
Rust
15 lines
209 B
Rust
// check-pass
|
|
// edition:2018
|
|
|
|
use std::future::Future;
|
|
|
|
async fn enter<'a, F, R>(mut callback: F)
|
|
where
|
|
F: FnMut(&'a mut i32) -> R,
|
|
R: Future<Output = ()> + 'a,
|
|
{
|
|
unimplemented!()
|
|
}
|
|
|
|
fn main() {}
|