diff options
Diffstat (limited to 'tests/ui/fmt/format-args-capture-issue-106408.rs')
-rw-r--r-- | tests/ui/fmt/format-args-capture-issue-106408.rs | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/tests/ui/fmt/format-args-capture-issue-106408.rs b/tests/ui/fmt/format-args-capture-issue-106408.rs new file mode 100644 index 000000000..0fd195416 --- /dev/null +++ b/tests/ui/fmt/format-args-capture-issue-106408.rs @@ -0,0 +1,10 @@ +// check-pass +// aux-build:format-string-proc-macro.rs + +extern crate format_string_proc_macro; + +fn main() { + // While literal macros like `format_args!(concat!())` are not supposed to work with implicit + // captures, it should work if the whole invocation comes from a macro expansion (#106408). + format_string_proc_macro::format_args_captures!(); +} |