mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-02 07:22:42 +00:00
19 lines
365 B
Rust
19 lines
365 B
Rust
//@ run-pass
|
|
#![allow(dead_code)]
|
|
// check for const_err regressions
|
|
|
|
const X: *const u8 = b"" as _;
|
|
const Y: bool = 'A' == 'B';
|
|
const Z: char = 'A';
|
|
const W: bool = Z <= 'B';
|
|
|
|
|
|
fn main() {
|
|
let _ = ((-1 as i8) << 8 - 1) as f32;
|
|
let _ = 0u8 as char;
|
|
let _ = true > false;
|
|
let _ = true >= false;
|
|
let _ = true < false;
|
|
let _ = true >= false;
|
|
}
|