2020-08-09 00:01:19 -05:00
|
|
|
// revisions: full min
|
|
|
|
|
2021-08-30 03:59:53 -05:00
|
|
|
#![cfg_attr(full, feature(adt_const_params))]
|
2020-08-09 00:01:19 -05:00
|
|
|
#![cfg_attr(full, allow(incomplete_features))]
|
2019-10-04 16:49:24 -05:00
|
|
|
|
2020-06-12 12:25:14 -05:00
|
|
|
struct Const<const P: *const u32>; //~ ERROR: using raw pointers as const generic parameters
|
2019-10-04 16:49:24 -05:00
|
|
|
|
|
|
|
fn main() {
|
2020-06-12 12:25:14 -05:00
|
|
|
let _: Const<{ 15 as *const _ }> = Const::<{ 10 as *const _ }>;
|
2020-02-05 05:17:41 -06:00
|
|
|
let _: Const<{ 10 as *const _ }> = Const::<{ 10 as *const _ }>;
|
2019-10-04 18:57:12 -05:00
|
|
|
}
|