diff options
Diffstat (limited to 'tests/ui/macros/meta-variable-depth-outside-repeat.stderr')
-rw-r--r-- | tests/ui/macros/meta-variable-depth-outside-repeat.stderr | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/tests/ui/macros/meta-variable-depth-outside-repeat.stderr b/tests/ui/macros/meta-variable-depth-outside-repeat.stderr new file mode 100644 index 000000000..fad150cad --- /dev/null +++ b/tests/ui/macros/meta-variable-depth-outside-repeat.stderr @@ -0,0 +1,8 @@ +error: meta-variable expression `length` with depth parameter must be called inside of a macro repetition + --> $DIR/meta-variable-depth-outside-repeat.rs:5:10 + | +LL | ${length(0)} + | ^^^^^^^^^^^ + +error: aborting due to previous error + |