2019-10-04 16:49:24 -05:00
|
|
|
#![feature(const_generics, const_compare_raw_pointers)]
|
2020-04-22 03:21:32 -05:00
|
|
|
//~^ WARN the feature `const_generics` is incomplete
|
2019-10-04 16:49:24 -05:00
|
|
|
|
|
|
|
struct Const<const P: *const u32>;
|
|
|
|
|
|
|
|
fn main() {
|
2020-02-05 05:17:41 -06:00
|
|
|
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
|
|
|
}
|