Skip to content

Commit 20f6b15

Browse files
committed
Separate closures, async and dotuse tests in directories
1 parent 2cde69a commit 20f6b15

File tree

3 files changed

+16
-9
lines changed

3 files changed

+16
-9
lines changed
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
//@ check-pass
2+
//@ edition:2018
3+
4+
#![feature(ergonomic_clones)]
5+
6+
use std::future::Future;
7+
8+
fn ergonomic_clone_async_closures() -> impl Future<Output = String> {
9+
let s = String::from("hi");
10+
11+
async use {
12+
s
13+
}
14+
}
15+
16+
fn main() {}

tests/ui/ergonomic-clones/closure.rs renamed to tests/ui/ergonomic-clones/closure/basic.rs

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
//@ check-pass
2-
//@ edition:2018
32

43
#![feature(ergonomic_clones)]
54

@@ -41,12 +40,4 @@ fn ergonomic_clone_closure_use_cloned() -> Foo {
4140
f
4241
}
4342

44-
fn ergonomic_clone_async_closures() -> impl Future<Output = String> {
45-
let s = String::from("hi");
46-
47-
async use {
48-
s
49-
}
50-
}
51-
5243
fn main() {}

0 commit comments

Comments
 (0)