blob: 7b16fa024f8e44122040c497c86e44b921d76ea7 (
plain)
1
2
3
4
5
6
7
8
9
10
11
|
#![deny(unreachable_code)]
#![allow(dead_code)]
use std::ptr;
pub unsafe fn g() {
return;
if *ptr::null() {}; //~ ERROR unreachable
//~| WARNING dereferencing a null pointer
}
pub fn main() {}
|