rust/tests/ui/macros/macro-stmt-matchers.rs
2024-02-16 20:02:50 +00:00

8 lines
137 B
Rust

//@ build-pass (FIXME(62277): could be check-pass?)
fn main() {
macro_rules! m { ($s:stmt;) => { $s } }
m!(vec![].push(0););
}