Closed
Description
From: src/test/compile-fail/E0395.rs
E0395 needs a span_label, updating it from:
error[E0395]: raw pointers cannot be compared in statics
--> src/test/compile-fail/E0395.rs:14:22
|
14 | static BAZ: bool = { (&FOO as *const i32) == (&BAR as *const i32) }; //~ ERROR E0395
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
To:
error[E0395]: raw pointers cannot be compared in statics
--> src/test/compile-fail/E0395.rs:14:22
|
14 | static BAZ: bool = { (&FOO as *const i32) == (&BAR as *const i32) }; //~ ERROR E0395
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ comparing raw pointers in static
Metadata
Metadata
Assignees
Labels
No labels