☰
Debian Codegraph
@
15:15.3.rel1-2
15:15.3.rel1-1
/
/
gcc
/
testsuite
/
rust
/
compile
/
issue-2767.rs
☽
☼
gcc/testsuite/rust/compile/issue-2767.rs
code
plain
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() {}