mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-27 17:24:06 +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() {}
|