Skip to content

Commit 23555b9

Browse files
committed
fix ui test
had to tell the test suite that it's supposed to compile
1 parent 63ce99c commit 23555b9

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

src/test/ui/inference-variable-behind-raw-pointer.rs

+4
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,10 @@
88
// option. This file may not be copied, modified, or distributed
99
// except according to those terms.
1010

11+
// must-compile-successfully
12+
13+
// tests that the following code compiles, but produces a future-compatibility warning
14+
1115
fn main() {
1216
let data = std::ptr::null();
1317
let _ = &data as *const *const ();

src/test/ui/inference-variable-behind-raw-pointer.stderr

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
warning[E0619]: the type of this value must be known in this context
2-
--> $DIR/inference-variable-behind-raw-pointer.rs:14:13
2+
--> $DIR/inference-variable-behind-raw-pointer.rs:18:13
33
|
4-
14 | if data.is_null() {}
4+
18 | if data.is_null() {}
55
| ^^^^^^^
66
|
77
= note: this will be made into a hard error in a future version of the compiler

0 commit comments

Comments
 (0)