18 lines
420 B
Rust
18 lines
420 B
Rust
#[macro_use]
|
|
mod macros;
|
|
|
|
error!(
|
|
error_dblquoted_string,
|
|
"a {\n @error \"hi\";\n}\n", "Error: \"hi\""
|
|
);
|
|
error!(
|
|
error_sglquoted_string,
|
|
"a {\n @error 'hi';\n}\n", "Error: \"hi\""
|
|
);
|
|
error!(error_unquoted_string, "a {\n @error hi;\n}\n", "Error: hi");
|
|
error!(error_arithmetic, "a {\n @error 1 + 1;\n}\n", "Error: 2");
|
|
error!(
|
|
error_is_inspected,
|
|
"a {\n @error null;\n}\n", "Error: null"
|
|
);
|