Macro tt_call::error_unexpected_last[][src]

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

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.

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 }
  |                                      ^^^