gccrs: Handle `async` functions in traits
[official-gcc.git] / gcc / testsuite / rust / compile / issue-867.rs
blobe5f9b29bd59550f96dbbef6d193506b48672ee1f
1 fn main() {
2     let _ = 42;
3     let a = _ + 123; // { dg-error "use of '_' is not allowed on the right-side of an assignment" }
4                      // { dg-error {failed to parse expression in let statement} "" { target *-*-* } .-1  }
5                      // { dg-error {failed to parse statement or expression in block expression} "" { target *-*-* } .-2 }
6                      // { dg-error {unrecognised token '\}' for start of item} "" { target *-*-* } .+2 }
7                      // { dg-error {failed to parse item in crate} "" { target *-*-* } .+1 }