aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/rust/compile/issue-2788.rs
blob: b3828fca6cb04740ba42fc5fa5a822581f60ab12 (plain)
1
2
3
4
5
6
7
8
9
10
// { dg-additional-options "-frust-compile-until=lowering" }
struct Foo {
    arg_1: u32,
    arg_2: i32,
}

impl Foo {
    async fn asynchronous_function_1(&self) {}
    async fn asynchronous_function_2() {}
}