File tree Expand file tree Collapse file tree 3 files changed +3
-3
lines changed Expand file tree Collapse file tree 3 files changed +3
-3
lines changed Original file line number Diff line number Diff line change 1
- 9bd53718e2537d95d8c092609618c2dcd6f05127
1
+ d2df372bca13bb60979c909660e69f2451630e81
Original file line number Diff line number Diff line change 1
1
#[ allow( deref_nullptr) ]
2
2
fn main ( ) {
3
- let x: i32 = unsafe { * std:: ptr:: null ( ) } ; //~ ERROR null pointer is not a valid pointer for this operation
3
+ let x: i32 = unsafe { * std:: ptr:: null ( ) } ; //~ ERROR null pointer is not a valid pointer
4
4
panic ! ( "this should never print: {}" , x) ;
5
5
}
Original file line number Diff line number Diff line change 1
1
#[ allow( deref_nullptr) ]
2
2
fn main ( ) {
3
- unsafe { * std:: ptr:: null_mut ( ) = 0i32 } ; //~ ERROR null pointer is not a valid pointer for this operation
3
+ unsafe { * std:: ptr:: null_mut ( ) = 0i32 } ; //~ ERROR null pointer is not a valid pointer
4
4
}
You can’t perform that action at this time.
0 commit comments