blob: 4a212d859b7f80f54d1a0fe0ab7699f28cd7ccd0 [file]
// { dg-additional-options "-frust-edition=2018" }
#![feature(no_core)]
#![no_core]
trait Foo {
fn f() -> u32;
}
impl Foo for u32 {
async fn f() -> u32 {
// { dg-error "functions in traits cannot be declared .async." "" { target *-*-* } .-1 }
22
}
}
fn main() {}