Skip to content

Commit b19d91a

Browse files
committed
Add c'…' idea.
1 parent 9fdd8f1 commit b19d91a

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

text/3348-c-str-literal.md

+5
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,12 @@ Interactions with string related macros:
9595
# Unresolved questions
9696
[unresolved-questions]: #unresolved-questions
9797

98+
- Also add `c'…'` as [`c_char`](https://doc.rust-lang.org/stable/core/ffi/type.c_char.html) literal?
99+
100+
It'd be identical to `b'…'`, except it'd be a `c_char` (`i8`) instead of `u8`.
101+
98102
- Should we make `&CStr` a thin pointer before stabilizing this? (If so, how?)
103+
99104
- Should the (unstable) [`concat_bytes` macro](https://github.com/rust-lang/rust/issues/87555) accept C string literals? (If so, should it evaluate to a C string or byte string?)
100105

101106
# Future possibilities

0 commit comments

Comments
 (0)