summaryrefslogtreecommitdiff
path: root/subprojects/thiserror/tests/ui/display-underscore.stderr
diff options
context:
space:
mode:
Diffstat (limited to 'subprojects/thiserror/tests/ui/display-underscore.stderr')
-rw-r--r--subprojects/thiserror/tests/ui/display-underscore.stderr7
1 files changed, 7 insertions, 0 deletions
diff --git a/subprojects/thiserror/tests/ui/display-underscore.stderr b/subprojects/thiserror/tests/ui/display-underscore.stderr
new file mode 100644
index 0000000..36882b9
--- /dev/null
+++ b/subprojects/thiserror/tests/ui/display-underscore.stderr
@@ -0,0 +1,7 @@
+error: invalid format string: invalid argument name `_`
+ --> tests/ui/display-underscore.rs:4:11
+ |
+4 | #[error("{_}")]
+ | ^ invalid argument name in format string
+ |
+ = note: argument name cannot be a single underscore