about summary refs log tree commit diff
path: root/tests/ui/async-await/async-closures/higher-ranked.rs
blob: 28f9df6013040506394070964dbd0a0cce342806 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
//@ aux-build:block-on.rs
//@ edition:2021
//@ build-pass

extern crate block_on;

fn main() {
    block_on::block_on(async {
        let x = async move |x: &str| {
            println!("{x}");
        };
        x("hello!").await;
    });
}