2016-06-13 07:27:05 -05:00
|
|
|
fn main() {
|
|
|
|
let x: *const u8 = &1;
|
|
|
|
let y: *const u8 = &2;
|
2018-05-09 10:45:16 -05:00
|
|
|
if x < y { //~ ERROR constant evaluation error [E0080]
|
|
|
|
//~^ NOTE attempted to do invalid arithmetic on pointers
|
2016-06-13 07:27:05 -05:00
|
|
|
unreachable!()
|
|
|
|
}
|
|
|
|
}
|