Skip to content

Commit 3d0b060

Browse files
authored
Rollup merge of #153762 - jdonszelmann:is-fn-test, r=lcnr
actually make the is-fn test test what it says it tests r? @lcnr Previously this test was (apart from the comment) identical to tests/ui/async-await/async-closures/once.rs
2 parents e9534cd + 687d7db commit 3d0b060

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

  • tests/ui/async-await/async-closures

tests/ui/async-await/async-closures/is-fn.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,11 +9,11 @@ use std::future::Future;
99

1010
extern crate block_on;
1111

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

1414
fn main() {
1515
block_on::block_on(async {
16-
async fn call_once<F: Future>(x: impl FnOnce(&'static str) -> F) -> F::Output {
16+
async fn call_once<F: Future>(x: impl Fn(&'static str) -> F) -> F::Output {
1717
x("hello, world").await
1818
}
1919
call_once(async |x: &'static str| {

0 commit comments

Comments
 (0)