2019-07-03 06:30:28 +09:00
|
|
|
// build-pass (FIXME(62277): could be check-pass?)
|
2017-12-15 08:20:54 +01:00
|
|
|
|
|
|
|
// tests that the following code compiles, but produces a future-compatibility warning
|
|
|
|
|
2017-12-14 18:51:25 +01:00
|
|
|
fn main() {
|
|
|
|
let data = std::ptr::null();
|
|
|
|
let _ = &data as *const *const ();
|
|
|
|
if data.is_null() {}
|
|
|
|
}
|