2020-06-12 19:25:14 +02:00
|
|
|
#![feature(const_generics)]
|
2020-04-22 10:21:32 +02:00
|
|
|
//~^ WARN the feature `const_generics` is incomplete
|
2019-10-05 10:49:24 +13:00
|
|
|
|
2020-06-12 19:25:14 +02:00
|
|
|
struct Const<const P: *const u32>; //~ ERROR: using raw pointers as const generic parameters
|
2019-10-05 10:49:24 +13:00
|
|
|
|
|
|
|
fn main() {
|
2020-06-12 19:25:14 +02:00
|
|
|
let _: Const<{ 15 as *const _ }> = Const::<{ 10 as *const _ }>;
|
2020-02-05 12:17:41 +01:00
|
|
|
let _: Const<{ 10 as *const _ }> = Const::<{ 10 as *const _ }>;
|
2019-10-05 12:57:12 +13:00
|
|
|
}
|