Files
rust/tests/ui/async-await/async-fn/dyn-pos.rs
2024-12-02 16:50:44 +00:00

9 lines
153 B
Rust

//@ edition:2018
#![feature(async_closure)]
fn foo(x: &dyn AsyncFn()) {}
//~^ ERROR the trait `AsyncFnMut` cannot be made into an object
fn main() {}