2019-12-23 10:41:06 -06:00
|
|
|
// normalize-stderr-64bit "0x00000000" -> "0x[PREFIX]"
|
|
|
|
// normalize-stderr-32bit "0x" -> "0x[PREFIX]"
|
|
|
|
|
2019-10-04 16:49:24 -05:00
|
|
|
#![feature(const_generics, const_compare_raw_pointers)]
|
|
|
|
//~^ WARN the feature `const_generics` is incomplete and may cause the compiler to crash
|
|
|
|
|
|
|
|
struct Const<const P: *const u32>;
|
|
|
|
|
|
|
|
fn main() {
|
|
|
|
let _: Const<{15 as *const _}> = Const::<{10 as *const _}>; //~ mismatched types
|
|
|
|
let _: Const<{10 as *const _}> = Const::<{10 as *const _}>;
|
2019-10-04 18:57:12 -05:00
|
|
|
}
|