rust/tests/ui/macros/metavar-expressions/out-of-bounds-arguments.stderr
Trevor Gross cf5eb27910 mbe: Restructure macro_metavar_expr tests
These tests have expanded beyond the RFC, so rename the directory
`rfc-3086-metavar-expr` to `metavar-expressions`. `concat` (which wasn't
part of the RFC) now fits in this group, so merge its tests into the
`metavar-expressions` directory.

Additionally rename some related `issue-*` tests.
2025-06-23 06:25:55 -05:00

21 lines
632 B
Plaintext

error: depth parameter of meta-variable expression `count` must be less than 4
--> $DIR/out-of-bounds-arguments.rs:7:14
|
LL | ${count($foo, 10)},
| ^^^^^^^^^^^^^^^^^
error: depth parameter of meta-variable expression `index` must be less than 3
--> $DIR/out-of-bounds-arguments.rs:19:18
|
LL | ${index(10)},
| ^^^^^^^^^^^
error: depth parameter of meta-variable expression `len` must be less than 2
--> $DIR/out-of-bounds-arguments.rs:32:18
|
LL | ${len(10)}
| ^^^^^^^^^
error: aborting due to 3 previous errors