mirror of
https://github.com/rust-lang/rust.git
synced 2025-06-08 13:18:32 +00:00
14 lines
234 B
Rust
14 lines
234 B
Rust
![]() |
//@ 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() {}
|