Debian Codegraph @

gcc/testsuite/rust/compile/macros/mbe/macro18.rs

raw
1 // { dg-additional-options "-w" }
2
3 macro_rules! take_stmt {
4 ($s:stmt) => {
5 $s;
6 };
7 }
8
9 fn main() -> i32 {
10 take_stmt!(let complete = 15;); // { dg-error "Failed to match any rule within macro" }
11 take_stmt!(let lacking = 14);
12
13 0
14 }