Gate async fn trait bound modifier on async_trait_bounds
This commit is contained in:
parent
a6f2f00de8
commit
59e3e8934e
28 changed files with 86 additions and 47 deletions
|
@ -9,7 +9,7 @@
|
|||
|
||||
#![feature(async_closure)]
|
||||
|
||||
fn async_closure_test(upvar: &str) -> impl async Fn() + '_ {
|
||||
fn async_closure_test(upvar: &str) -> impl AsyncFn() + '_ {
|
||||
async move || {
|
||||
let hello = String::from("hello");
|
||||
println!("{hello}, {upvar}");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue