about summary refs log tree commit diff
path: root/src/test/ui/inference/inference-variable-behind-raw-pointer.rs
blob: a90b268db8c95d11e32835d81d4897525b0bd0b1 (plain)
1
2
3
4
5
6
7
8
9
// build-pass (FIXME(62277): could be check-pass?)

// tests that the following code compiles, but produces a future-compatibility warning

fn main() {
    let data = std::ptr::null();
    let _ = &data as *const *const ();
    if data.is_null() {}
}