had to tell the test suite that it's supposed to compile
// option. This file may not be copied, modified, or distributed
// except according to those terms.
+// must-compile-successfully
+
+// tests that the following code compiles, but produces a future-compatibility warning
+
fn main() {
let data = std::ptr::null();
let _ = &data as *const *const ();
warning[E0619]: the type of this value must be known in this context
- --> $DIR/inference-variable-behind-raw-pointer.rs:14:13
+ --> $DIR/inference-variable-behind-raw-pointer.rs:18:13
|
-14 | if data.is_null() {}
+18 | if data.is_null() {}
| ^^^^^^^
|
= note: this will be made into a hard error in a future version of the compiler