9 lines
209 B
Rust
9 lines
209 B
Rust
fn main() {
|
|
let x: *const u8 = &1;
|
|
let y: *const u8 = &2;
|
|
if x < y { //~ ERROR constant evaluation error
|
|
//~^ NOTE attempted to do invalid arithmetic on pointers
|
|
unreachable!()
|
|
}
|
|
}
|