diff options
Diffstat (limited to 'tests/ui/macros/macro-comma-support.rs')
-rw-r--r-- | tests/ui/macros/macro-comma-support.rs | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/tests/ui/macros/macro-comma-support.rs b/tests/ui/macros/macro-comma-support.rs new file mode 100644 index 000000000..7df5b6233 --- /dev/null +++ b/tests/ui/macros/macro-comma-support.rs @@ -0,0 +1,10 @@ +// This is a companion to the similarly-named test in run-pass. +// +// It tests macros that unavoidably produce compile errors. + +fn compile_error() { + compile_error!("lel"); //~ ERROR lel + compile_error!("lel",); //~ ERROR lel +} + +fn main() {} |