Like a few other macros, panic! accepts a format string and arguments.
The format string is meant to be static and calling it with a message string will generate a warning.
Currently, the warning also indicates that rustc will generate an error instead in the near future.
Like a few other macros,
panic!
accepts a format string and arguments. The format string is meant to be static and calling it with a message string will generate a warning. Currently, the warning also indicates thatrustc
will generate an error instead in the near future.