Debian Codegraph @

gcc/testsuite/rust/compile/issue-2767.rs

raw
1 // { dg-additional-options "-frust-edition=2018" }
2 trait Foo {
3 fn f() -> u32;
4 }
5
6 impl Foo for u32 {
7 async fn f() -> u32 {
8 // { dg-error "functions in traits cannot be declared .async." "" { target *-*-* } .-1 }
9 22
10 }
11 }
12
13 fn main() {}