about summary refs log tree commit diff
path: root/library/alloctests
diff options
context:
space:
mode:
authorTamir Duberstein <tamird@gmail.com>2025-04-18 10:30:38 -0400
committerTamir Duberstein <tamird@gmail.com>2025-04-18 10:31:55 -0400
commit9058bab9a9e88b90596019f686cce1f21ac19ef8 (patch)
tree88cd28928407f2f2d23b63d48fce4253a2a06f48 /library/alloctests
parentf727b3622bf69f44500e708f387160d5afbb39db (diff)
downloadrust-9058bab9a9e88b90596019f686cce1f21ac19ef8.tar.gz
rust-9058bab9a9e88b90596019f686cce1f21ac19ef8.zip
Move `<CStr as Debug>` test to coretests
Diffstat (limited to 'library/alloctests')
-rw-r--r--library/alloctests/tests/c_str2.rs6
1 files changed, 0 insertions, 6 deletions
diff --git a/library/alloctests/tests/c_str2.rs b/library/alloctests/tests/c_str2.rs
index 0f4c27fa123..fe7686bd1c5 100644
--- a/library/alloctests/tests/c_str2.rs
+++ b/library/alloctests/tests/c_str2.rs
@@ -34,12 +34,6 @@ fn build_with_zero2() {
 }
 
 #[test]
-fn formatted() {
-    let s = CString::new(&b"abc\x01\x02\n\xE2\x80\xA6\xFF"[..]).unwrap();
-    assert_eq!(format!("{s:?}"), r#""abc\x01\x02\n\xe2\x80\xa6\xff""#);
-}
-
-#[test]
 fn borrowed() {
     unsafe {
         let s = CStr::from_ptr(b"12\0".as_ptr() as *const _);