about summary refs log tree commit diff
path: root/tests/ui/explicit-tail-calls/become-macro.rs
blob: 0a9d069ceb3cb3b169954c62c447971fbbf8c3ec (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
//@ check-pass
#![expect(incomplete_features)]
#![feature(explicit_tail_calls, decl_macro)]

macro call($f:expr $(, $args:expr)* $(,)?) {
    ($f)($($args),*)
}

fn main() {
    become call!(f);
}

fn f() {}