We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9016882 commit 71d302cCopy full SHA for 71d302c
1 file changed
tests/unit/out/unsafe/user_defined_same_as_libc.rs
@@ -18,8 +18,8 @@ pub fn main() {
18
}
19
unsafe fn main_0() -> i32 {
20
let mut fp: *mut ::std::fs::File = (unsafe {
21
- let _path: *const u8 = b"/etc/passwd\0".as_ptr().cast_mut().cast_const();
22
- let _mode: *const u8 = b"r\0".as_ptr().cast_mut().cast_const();
+ let _path: *const u8 = (b"/etc/passwd\0".as_ptr().cast_mut()).cast_const();
+ let _mode: *const u8 = (b"r\0".as_ptr().cast_mut()).cast_const();
23
fopen_0(_path, _mode)
24
});
25
assert!(((((fp).is_null()) as i32) != 0));
0 commit comments