blob: 0d22cbd2c0730c07845667f11ec9a99427ad146e (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
//@ edition:2018
#![feature(async_closure)]
struct S;
fn test(x: impl async S) {}
//~^ ERROR expected trait, found struct `S`
fn missing(x: impl async Missing) {}
//~^ ERROR cannot find trait `Missing` in this scope
fn main() {}
|