Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions tests/ui/async-await/async-closures/is-fn.rs
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,11 @@ use std::future::Future;

extern crate block_on;

// Check that closures that don't capture any state may implement `Fn`.
// Check that async closures that don't capture any state may implement `Fn`.

fn main() {
block_on::block_on(async {
async fn call_once<F: Future>(x: impl FnOnce(&'static str) -> F) -> F::Output {
async fn call_once<F: Future>(x: impl Fn(&'static str) -> F) -> F::Output {
x("hello, world").await
}
call_once(async |x: &'static str| {
Expand Down
Loading