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