macro_rules! error_eof {
() => { ... };
}
Expand description
Fail due to an unexpected end of input.
The resulting compiler error is typically not good. Always prefer to use
error_unexpected!
or error_unexpected_last!
if there are tokens on which
an error could reasonably be triggered.
ⓘ
use tt_call::error_eof;
fn main() {
error_eof!{}
}
error: unexpected end of macro invocation
--> src/unexpected.rs:5:5
|
5 | error_eof!{}
| ^^^^^^^^^^^^