Unnamed repository; edit this file 'description' to name the repository.
Diffstat (limited to 'crates/hir_def/src/macro_expansion_tests/mbe/regression.rs')
| -rw-r--r-- | crates/hir_def/src/macro_expansion_tests/mbe/regression.rs | 59 |
1 files changed, 34 insertions, 25 deletions
diff --git a/crates/hir_def/src/macro_expansion_tests/mbe/regression.rs b/crates/hir_def/src/macro_expansion_tests/mbe/regression.rs index 563fe50588..2dff4adf2e 100644 --- a/crates/hir_def/src/macro_expansion_tests/mbe/regression.rs +++ b/crates/hir_def/src/macro_expansion_tests/mbe/regression.rs @@ -825,15 +825,18 @@ macro_rules! rgb_color { }; } /* parse error: expected type */ +/* parse error: expected R_PAREN */ /* parse error: expected R_ANGLE */ /* parse error: expected COMMA */ /* parse error: expected R_ANGLE */ /* parse error: expected SEMICOLON */ +/* parse error: expected SEMICOLON */ +/* parse error: expected expression */ pub fn new() { - let _ = 0as u32<<8+8; + let _ = 0as u32<<(8+8); } // [email protected] "pub" // [email protected] "fn" @@ -842,39 +845,45 @@ pub fn new() { // [email protected] "(" // [email protected] ")" // [email protected] "{" // [email protected] "let" // [email protected] "_" // [email protected] "=" // [email protected] "0" // [email protected] "as" // [email protected] "u32" // [email protected] "<" -// [email protected] "<" -// [email protected] "8" -// [email protected] "+" -// [email protected] "8" -// [email protected] ";" -// [email protected] "}" +// [email protected] "<" +// [email protected] "(" +// [email protected] "8" +// [email protected] "+" +// [email protected] "8" +// [email protected] ")" +// [email protected] ";" +// [email protected] "}" "#]], ); |