fix ui test

had to tell the test suite that it's supposed to compile
This commit is contained in:
Michael Hewson 2017-12-15 08:20:54 +01:00
parent 63ce99c6f8
commit 23555b9f12
2 changed files with 6 additions and 2 deletions

View File

@ -8,6 +8,10 @@
// 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 ();

View File

@ -1,7 +1,7 @@
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