[][src]Macro tt_call::error_unexpected_last

macro_rules! error_unexpected_last {
    ($($tokens:tt)+) => { ... };
}

Fail due to an unexpected input token, faulting the last token.

The compiler's error will indicate the source of the unexpected token to the user.

This example deliberately fails to compile
use tt_call::error_unexpected_last;

fn main() {
    error_unexpected_last! { aaa bbb ccc }
}
error: no rules expected the token `true`
 --> src/unexpected.rs:5:38
  |
5 |     error_unexpected_last! { aaa bbb ccc }
  |                                      ^^^