2024-02-16 20:02:50 +00:00
|
|
|
//@ edition:2018
|
2024-01-26 17:33:42 +00:00
|
|
|
|
2024-11-04 19:29:02 +00:00
|
|
|
#![feature(async_trait_bounds)]
|
2024-01-26 17:33:42 +00:00
|
|
|
|
|
|
|
|
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() {}
|