summaryrefslogtreecommitdiffstats
path: root/tests/ui/typeck/ptr-null-mutability-suggestions.rs
blob: ea3066d2289f5fbaab980b5b427340aec226cecd (plain)
1
2
3
4
5
6
7
8
9
10
11
// run-rustfix

#[allow(unused_imports)]
use std::ptr;

fn expecting_null_mut(_: *mut u8) {}

fn main() {
    expecting_null_mut(ptr::null());
    //~^ ERROR mismatched types
}