diff options
| author | Jon Gjengset <jon@thesquareplanet.com> | 2019-09-27 23:19:37 -0400 |
|---|---|---|
| committer | Jon Gjengset <jon@thesquareplanet.com> | 2019-09-27 23:19:39 -0400 |
| commit | 4d34ce2c2515a429bea325b93aea332ac8d6a7b9 (patch) | |
| tree | 46d5b96497c2ed780d775620f93f754c236be70f | |
| parent | 06e4ff4d61f44d7e239e02256829ecf1e5598657 (diff) | |
| download | rust-4d34ce2c2515a429bea325b93aea332ac8d6a7b9.tar.gz rust-4d34ce2c2515a429bea325b93aea332ac8d6a7b9.zip | |
Place test with async-await and use 2018 edition
| -rw-r--r-- | src/test/ui/async-await/issues/issue-64477-2.rs (renamed from src/test/ui/fmt/issue-64477.rs) | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/test/ui/fmt/issue-64477.rs b/src/test/ui/async-await/issues/issue-64477-2.rs index b7c8cf17c31..2360b57cc45 100644 --- a/src/test/ui/fmt/issue-64477.rs +++ b/src/test/ui/async-await/issues/issue-64477-2.rs @@ -1,8 +1,14 @@ +// Another regression test for #64477. +// // In the past, the code generated by `format!` produced temporaries in the surrounding scope that // borrowed the arguments through `&dyn Trait`. These temporaries do not implement `Send`, which // meant that when `format!` was used in an async block, the resulting generator was not `Send`. // See https://github.com/rust-lang/rust/issues/64477#issuecomment-534669068 for details // and https://github.com/rust-lang/rust/issues/64477#issuecomment-531882958 for an example. +// +// check-pass +// edition:2018 + async fn foo(_: String) {} fn bar() -> impl Send { |
