diff options
| author | bors <bors@rust-lang.org> | 2023-05-05 15:59:20 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2023-05-05 15:59:20 +0000 |
| commit | 4b94c232192b0fa0314b5afa18e366356e210c4c (patch) | |
| tree | 5e16d07c49b6de25df631d2e0a9ef9947795714c /tests/ui/rfcs/rfc-3348-c-string-literals/basic.rs | |
| parent | 4a18324a4df6bc98bec0b54d35908d7a9cdc7c32 (diff) | |
| parent | c99ab29e6b2736006f22781802f3b5bd805139af (diff) | |
| download | rust-4b94c232192b0fa0314b5afa18e366356e210c4c.tar.gz rust-4b94c232192b0fa0314b5afa18e366356e210c4c.zip | |
Auto merge of #111248 - Dylan-DPC:rollup-lbp0ui3, r=Dylan-DPC
Rollup of 6 pull requests
Successful merges:
- #103056 (Fix `checked_{add,sub}_duration` incorrectly returning `None` when `other` has more than `i64::MAX` seconds)
- #108801 (Implement RFC 3348, `c"foo"` literals)
- #110773 (Reduce MIR dump file count for MIR-opt tests)
- #110876 (Added default target cpu to `--print target-cpus` output and updated docs)
- #111068 (Improve check-cfg implementation)
- #111238 (btree_map: `Cursor{,Mut}::peek_prev` must agree)
Failed merges:
- #110694 (Implement builtin # syntax and use it for offset_of!(...))
r? `@ghost`
`@rustbot` modify labels: rollup
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.rs | 7 |
1 files changed, 7 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 00000000000..e4b07ab8108 --- /dev/null +++ b/tests/ui/rfcs/rfc-3348-c-string-literals/basic.rs @@ -0,0 +1,7 @@ +// run-pass + +#![feature(c_str_literals)] + +fn main() { + assert_eq!(b"test\0", c"test".to_bytes_with_nul()); +} |
