gcc/testsuite/rust/compile/issue-407.rs
raw| 1 | // This already worked before the #409 code changes. |
| 2 | fn test() { |
| 3 | let mut a = 1; |
| 4 | a + = 1; // { dg-error "found unexpected token '=' in null denotation" } |
| 5 | // { dg-error {failed to parse statement or expression in block expression} "" { target *-*-* } .-1 } |
| 6 | // { dg-error {unrecognised token 'integer literal' for start of item} "" { target *-*-* } .-2 } |
| 7 | // { dg-error {failed to parse item in crate} "" { target *-*-* } .-3 } |
| 8 | } |