2018-08-30 12:18:55 +00:00
|
|
|
//@ run-pass
|
2018-09-25 21:51:35 +00:00
|
|
|
#![allow(dead_code)]
|
2016-05-02 09:26:29 +00:00
|
|
|
// check for const_err regressions
|
|
|
|
|
2016-05-08 08:52:17 +00:00
|
|
|
const X: *const u8 = b"" as _;
|
2017-03-31 22:52:35 +00:00
|
|
|
const Y: bool = 'A' == 'B';
|
|
|
|
const Z: char = 'A';
|
|
|
|
const W: bool = Z <= 'B';
|
|
|
|
|
2016-05-02 09:26:29 +00:00
|
|
|
|
|
|
|
fn main() {
|
|
|
|
let _ = ((-1 as i8) << 8 - 1) as f32;
|
|
|
|
let _ = 0u8 as char;
|
2016-10-09 14:43:23 +00:00
|
|
|
let _ = true > false;
|
|
|
|
let _ = true >= false;
|
|
|
|
let _ = true < false;
|
|
|
|
let _ = true >= false;
|
2016-05-02 09:26:29 +00:00
|
|
|
}
|