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 06e4ff4 commit 4d34ce2Copy full SHA for 4d34ce2
src/test/ui/fmt/issue-64477.rs renamed to src/test/ui/async-await/issues/issue-64477-2.rs
@@ -1,8 +1,14 @@
1
+// Another regression test for #64477.
2
+//
3
// In the past, the code generated by `format!` produced temporaries in the surrounding scope that
4
// borrowed the arguments through `&dyn Trait`. These temporaries do not implement `Send`, which
5
// meant that when `format!` was used in an async block, the resulting generator was not `Send`.
6
// See https://github.com/rust-lang/rust/issues/64477#issuecomment-534669068 for details
7
// and https://github.com/rust-lang/rust/issues/64477#issuecomment-531882958 for an example.
8
9
+// check-pass
10
+// edition:2018
11
+
12
async fn foo(_: String) {}
13
14
fn bar() -> impl Send {
0 commit comments