]> git.lizzy.rs Git - rust.git/blob - tests/ui/const-generics/raw-ptr-const-param.rs
Rollup merge of #107525 - RalfJung:pointee-info, r=eddyb
[rust.git] / tests / ui / const-generics / raw-ptr-const-param.rs
1 // revisions: full min
2
3 #![cfg_attr(full, feature(adt_const_params))]
4 #![cfg_attr(full, allow(incomplete_features))]
5
6 struct Const<const P: *const u32>; //~ ERROR: using raw pointers as const generic parameters
7
8 fn main() {
9     let _: Const<{ 15 as *const _ }> = Const::<{ 10 as *const _ }>;
10     let _: Const<{ 10 as *const _ }> = Const::<{ 10 as *const _ }>;
11 }