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