diff options
Diffstat (limited to 'tests/ui/fmt/format-args-capture-from-pm-first-arg-macro.rs')
-rw-r--r-- | tests/ui/fmt/format-args-capture-from-pm-first-arg-macro.rs | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/tests/ui/fmt/format-args-capture-from-pm-first-arg-macro.rs b/tests/ui/fmt/format-args-capture-from-pm-first-arg-macro.rs new file mode 100644 index 000000000..f67edf5e1 --- /dev/null +++ b/tests/ui/fmt/format-args-capture-from-pm-first-arg-macro.rs @@ -0,0 +1,8 @@ +// aux-build:format-string-proc-macro.rs + +extern crate format_string_proc_macro; + +fn main() { + format_string_proc_macro::bad_format_args_captures!(); + //~^ ERROR there is no argument named `x` +} |