3 // tests that the following code compiles, but produces a future-compatibility warning
6 let data = std::ptr::null();
7 let _ = &data as *const *const ();
9 //~^ WARNING type annotations needed
10 //~| WARNING this is accepted in the current edition