Separate closures, async and dotuse tests in directories
This commit is contained in:
parent
8c456cbf5f
commit
4cbca777ea
3 changed files with 16 additions and 9 deletions
16
tests/ui/ergonomic-clones/async/basic.rs
Normal file
16
tests/ui/ergonomic-clones/async/basic.rs
Normal file
|
@ -0,0 +1,16 @@
|
|||
//@ check-pass
|
||||
//@ edition:2018
|
||||
|
||||
#![feature(ergonomic_clones)]
|
||||
|
||||
use std::future::Future;
|
||||
|
||||
fn ergonomic_clone_async_closures() -> impl Future<Output = String> {
|
||||
let s = String::from("hi");
|
||||
|
||||
async use {
|
||||
s
|
||||
}
|
||||
}
|
||||
|
||||
fn main() {}
|
|
@ -1,5 +1,4 @@
|
|||
//@ check-pass
|
||||
//@ edition:2018
|
||||
|
||||
#![feature(ergonomic_clones)]
|
||||
|
||||
|
@ -41,12 +40,4 @@ fn ergonomic_clone_closure_use_cloned() -> Foo {
|
|||
f
|
||||
}
|
||||
|
||||
fn ergonomic_clone_async_closures() -> impl Future<Output = String> {
|
||||
let s = String::from("hi");
|
||||
|
||||
async use {
|
||||
s
|
||||
}
|
||||
}
|
||||
|
||||
fn main() {}
|
Loading…
Add table
Add a link
Reference in a new issue