We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2e4b246 commit 89c325cCopy full SHA for 89c325c
1 file changed
tests/unit/out/unsafe/strchr_c.rs
@@ -12,7 +12,7 @@ pub fn main() {
12
}
13
14
unsafe fn main_0() -> i32 {
15
- let mut s: *const u8 = (b"hello world\0".as_ptr().cast_mut()).cast_const();
+ let mut s: *const u8 = b"hello world\0".as_ptr().cast_mut().cast_const();
16
let mut r: *mut u8 = libc::strchr(s as *const i8, ('w' as i32)) as *mut u8;
17
assert!((((!((r).is_null())) as i32) != 0));
18
assert!((((((*r) as i32) == ('w' as i32)) as i32) != 0));
0 commit comments