mirror of
https://github.com/rust-lang/rust.git
synced 2024-12-02 19:53:46 +00:00
fix ui test
had to tell the test suite that it's supposed to compile
This commit is contained in:
parent
63ce99c6f8
commit
23555b9f12
@ -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 ();
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user