about summary refs log tree commit diff
path: root/tests/ui/ergonomic-clones/async/basic.rs
blob: ad2bfd97cd1b56745f8459d5ef2e565d7ee6db8e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
//@ check-pass
//@ edition:2018

#![feature(ergonomic_clones)]
#![allow(incomplete_features)]

use std::future::Future;

fn ergonomic_clone_async_closures() -> impl Future<Output = String> {
    let s = String::from("hi");

    async use {
        s
    }
}

fn main() {}