[][src]Macro tt_call::error_unexpected

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

Fail due to an unexpected input 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;

fn main() {
    error_unexpected! { true }
}
error: no rules expected the token `true`
 --> src/unexpected.rs:5:25
  |
5 |     error_unexpected! { true }
  |                         ^^^^