aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/rust/compile/issue-2785.rs
blob: 08f6346f60b2268db4c3f91d4068ba91909a1c22 (plain)
1
2
3
4
5
6
7
8
9
// { dg-additional-options "-frust-edition=2018" }
trait Foo {
    async fn foo(){}
    // { dg-error "functions in traits cannot be declared .async." "" { target *-*-* } .-1 }
    async fn bar();
    // { dg-error "functions in traits cannot be declared .async." "" { target *-*-* } .-1 }
}

fn main() {}