]> git.proxmox.com Git - rustc.git/blob - src/test/ui/inference/inference-variable-behind-raw-pointer.rs
New upstream version 1.41.1+dfsg1
[rustc.git] / src / test / ui / inference / inference-variable-behind-raw-pointer.rs
1 // check-pass
2
3 // tests that the following code compiles, but produces a future-compatibility warning
4
5 fn main() {
6 let data = std::ptr::null();
7 let _ = &data as *const *const ();
8 if data.is_null() {}
9 //~^ WARNING type annotations needed
10 //~| WARNING this was previously accepted by the compiler but is being phased out
11 }