summary refs log tree commit diff
path: root/src/test/ui/const-generics/raw-ptr-const-param.rs
blob: d7d970e952b656adf6bf0fcbbeb0b73d6ead57a1 (plain)
1
2
3
4
5
6
7
8
9
#![feature(const_generics, const_compare_raw_pointers)]
//~^ WARN the feature `const_generics` is incomplete

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 _ }>;
}