2018-08-30 14:18:55 +02:00
|
|
|
// run-pass
|
2018-09-25 23:51:35 +02:00
|
|
|
#![allow(dead_code)]
|
2015-03-22 13:13:15 -07:00
|
|
|
|
2015-04-02 01:09:05 +02: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 20:45:12 +02:00
|
|
|
|
|
|
|
fn main() {
|
|
|
|
assert_eq!(match 1 {
|
|
|
|
X => unreachable!(),
|
|
|
|
Y => unreachable!(),
|
2015-01-25 22:05:03 +01:00
|
|
|
_ => 1
|
2014-09-07 20:45:12 +02:00
|
|
|
}, 1);
|
|
|
|
}
|