about summary refs log tree commit diff
path: root/tests/ui/async-await/async-fn/dyn-pos.rs
blob: 772c7d15cfd49bd450084d04906c510d71cc1595 (plain)
1
2
3
4
5
6
7
8
9
10
11
//@ edition:2018

#![feature(async_closure)]

fn foo(x: &dyn async Fn()) {}
//~^ ERROR the trait `AsyncFn` cannot be made into an object
//~| ERROR the trait `AsyncFnMut` cannot be made into an object
//~| ERROR the trait `AsyncFnMut` cannot be made into an object
//~| ERROR the trait `AsyncFnMut` cannot be made into an object

fn main() {}