Closed
Description
When calling the macro with no arguments error!()
:
error: Could not compile
warning: build failed, waiting for other jobs to finish...
error: expected identifier, found `,`
--> mod.rs:37:15
|
37 | error!();
| ^^^^^^^^^
| |
| expected identifier
| help: remove this comma
|
= note: this error originates in a macro outside of the current crate (in Nightly builds, run with -Z external-macro-backtrace for more info)
error: aborting due to previous error
error: Could not compile
The diagnostic should instruct the user that a string literal is required as a parameter to the macro.