summaryrefslogtreecommitdiffstats
path: root/vendor/cstr/tests/compile_fail/non-str.stderr
diff options
context:
space:
mode:
Diffstat (limited to 'vendor/cstr/tests/compile_fail/non-str.stderr')
-rw-r--r--vendor/cstr/tests/compile_fail/non-str.stderr17
1 files changed, 17 insertions, 0 deletions
diff --git a/vendor/cstr/tests/compile_fail/non-str.stderr b/vendor/cstr/tests/compile_fail/non-str.stderr
new file mode 100644
index 000000000..bbbf7e716
--- /dev/null
+++ b/vendor/cstr/tests/compile_fail/non-str.stderr
@@ -0,0 +1,17 @@
+error: expected one of: byte string literal, string literal, identifier
+ --> $DIR/non-str.rs:4:22
+ |
+4 | let _foo = cstr!(1);
+ | ^
+
+error: expected one of: byte string literal, string literal, identifier
+ --> $DIR/non-str.rs:5:22
+ |
+5 | let _foo = cstr!(("a"));
+ | ^^^^^
+
+error: expected one of: byte string literal, string literal, identifier
+ --> $DIR/non-str.rs:6:22
+ |
+6 | let _foo = cstr!(&1);
+ | ^