rust/tests/ui/async-await/async-fn/dyn-pos.rs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

7 lines
125 B
Rust
Raw Normal View History

2024-01-26 17:00:34 +00:00
//@ edition:2018
fn foo(x: &dyn AsyncFn()) {}
//~^ ERROR the trait `AsyncFnMut` cannot be made into an object
2024-01-26 17:00:34 +00:00
fn main() {}