Macro tt_call::error_unexpected
source · macro_rules! error_unexpected { ($($tokens:tt)+) => { ... }; }
Expand description
Fail due to an unexpected input token.
The compiler’s error will indicate the source of the unexpected token to the user.
ⓘ
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 }
| ^^^^