macro_rules! format_literal {
($($args:tt)*) => { ... };
}Expand description
Generates a Literal from a format specification. Unlike format_literal_string!, this does not
add quotes and can be used to create any kind of literal, such as integers or floats.
§Panics
Panics when the formatted string is not a valid literal.
§Example
use unsynn::*;
let literal = format_literal!("123{}", ".456");
assert_tokens_eq!(literal, str "123.456");