summaryrefslogtreecommitdiffstats
path: root/tests/ui/fmt/respanned-literal-issue-106191.rs
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--tests/ui/fmt/respanned-literal-issue-106191.rs15
1 files changed, 15 insertions, 0 deletions
diff --git a/tests/ui/fmt/respanned-literal-issue-106191.rs b/tests/ui/fmt/respanned-literal-issue-106191.rs
new file mode 100644
index 000000000..bb741c0ef
--- /dev/null
+++ b/tests/ui/fmt/respanned-literal-issue-106191.rs
@@ -0,0 +1,15 @@
+// aux-build:format-string-proc-macro.rs
+// check-fail
+// known-bug: #106191
+// unset-rustc-env:RUST_BACKTRACE
+// had to be reverted
+// error-pattern:internal compiler error
+// failure-status:101
+// dont-check-compiler-stderr
+
+extern crate format_string_proc_macro;
+
+fn main() {
+ format_string_proc_macro::respan_to_invalid_format_literal!("¡");
+ format_args!(r#concat!("¡ {"));
+}