2018-08-30 07:18:55 -05:00
|
|
|
// run-pass
|
2018-09-25 16:51:35 -05:00
|
|
|
#![allow(dead_code)]
|
2015-03-22 15:13:15 -05:00
|
|
|
|
2015-04-01 18:09:05 -05:00
|
|
|
static X2: u64 = !0 as u16 as u64;
|
|
|
|
static Y2: u64 = !0 as u32 as u64;
|
|
|
|
const X: u64 = !0 as u16 as u64;
|
|
|
|
const Y: u64 = !0 as u32 as u64;
|
2014-09-07 13:45:12 -05:00
|
|
|
|
|
|
|
fn main() {
|
|
|
|
assert_eq!(match 1 {
|
|
|
|
X => unreachable!(),
|
|
|
|
Y => unreachable!(),
|
2015-01-25 15:05:03 -06:00
|
|
|
_ => 1
|
2014-09-07 13:45:12 -05:00
|
|
|
}, 1);
|
|
|
|
}
|