rust/tests/ui/macros/macro-stmt-matchers.rs
2023-01-11 09:32:08 +00:00

8 lines
136 B
Rust

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