diff options
Diffstat (limited to 'tests/ui/macros/macro-error.stderr')
-rw-r--r-- | tests/ui/macros/macro-error.stderr | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/tests/ui/macros/macro-error.stderr b/tests/ui/macros/macro-error.stderr new file mode 100644 index 000000000..2539a6d51 --- /dev/null +++ b/tests/ui/macros/macro-error.stderr @@ -0,0 +1,14 @@ +error: macro rhs must be delimited + --> $DIR/macro-error.rs:2:18 + | +LL | ($a:expr) => a; + | ^ + +error: non-type macro in type position: cfg + --> $DIR/macro-error.rs:8:12 + | +LL | let _: cfg!(foo) = (); + | ^^^^^^^^^ + +error: aborting due to 2 previous errors + |