summaryrefslogtreecommitdiffstats
path: root/tests/ui/rfcs/rfc-3348-c-string-literals/basic.rs
diff options
context:
space:
mode:
Diffstat (limited to 'tests/ui/rfcs/rfc-3348-c-string-literals/basic.rs')
-rw-r--r--tests/ui/rfcs/rfc-3348-c-string-literals/basic.rs9
1 files changed, 9 insertions, 0 deletions
diff --git a/tests/ui/rfcs/rfc-3348-c-string-literals/basic.rs b/tests/ui/rfcs/rfc-3348-c-string-literals/basic.rs
new file mode 100644
index 000000000..3fc5fd481
--- /dev/null
+++ b/tests/ui/rfcs/rfc-3348-c-string-literals/basic.rs
@@ -0,0 +1,9 @@
+// FIXME(c_str_literals): This should be `run-pass`
+// known-bug: #113333
+// edition: 2021
+
+#![feature(c_str_literals)]
+
+fn main() {
+ assert_eq!(b"test\0", c"test".to_bytes_with_nul());
+}