macro_rules! text_block {
() => { ... };
($line:literal) => { ... };
($head:literal $($tail:literal)*) => { ... };
}
Expand description
Create a multiline string literal.
Example:
let text = text_block! {
"abc"
"def"
"ghi"
};
assert_eq!(text, "abc\ndef\nghi");