summaryrefslogtreecommitdiffstats
path: root/tests/ui/macros/issue-86865.stderr
diff options
context:
space:
mode:
Diffstat (limited to 'tests/ui/macros/issue-86865.stderr')
-rw-r--r--tests/ui/macros/issue-86865.stderr18
1 files changed, 18 insertions, 0 deletions
diff --git a/tests/ui/macros/issue-86865.stderr b/tests/ui/macros/issue-86865.stderr
new file mode 100644
index 000000000..eed755366
--- /dev/null
+++ b/tests/ui/macros/issue-86865.stderr
@@ -0,0 +1,18 @@
+error: format argument must be a string literal
+ --> $DIR/issue-86865.rs:4:14
+ |
+LL | println!(b"foo");
+ | -^^^^^
+ | |
+ | help: consider removing the leading `b`
+
+error: format argument must be a string literal
+ --> $DIR/issue-86865.rs:8:15
+ |
+LL | write!(s, b"foo{}", "bar");
+ | -^^^^^^^
+ | |
+ | help: consider removing the leading `b`
+
+error: aborting due to 2 previous errors
+