blob: 5cf23f2456a82e71394ac07127d28aee43dce96c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
//@ edition:2018
#![feature(async_trait_bounds)]
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() {}
|