From 687d7dbc23753f3d6eca80cccd57dc3432325a8b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jana=20D=C3=B6nszelmann?= Date: Thu, 12 Mar 2026 09:36:46 +0100 Subject: [PATCH] actually make the is-fn test test what it says it tests --- tests/ui/async-await/async-closures/is-fn.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/ui/async-await/async-closures/is-fn.rs b/tests/ui/async-await/async-closures/is-fn.rs index 45c2b6ae342b6..1d546cd44b496 100644 --- a/tests/ui/async-await/async-closures/is-fn.rs +++ b/tests/ui/async-await/async-closures/is-fn.rs @@ -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(x: impl FnOnce(&'static str) -> F) -> F::Output { + async fn call_once(x: impl Fn(&'static str) -> F) -> F::Output { x("hello, world").await } call_once(async |x: &'static str| {