We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2cde69a commit 20f6b15Copy full SHA for 20f6b15
tests/ui/ergonomic-clones/async/basic.rs
@@ -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
@@ -1,5 +1,4 @@
//@ check-pass
-//@ edition:2018
#![feature(ergonomic_clones)]
@@ -41,12 +40,4 @@ fn ergonomic_clone_closure_use_cloned() -> Foo {
41
40
f
42
}
43
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
52
fn main() {}
tests/ui/ergonomic-clones/dotuse.rs renamed to tests/ui/ergonomic-clones/dotuse/basic.rs
0 commit comments