summary refs log tree commit diff
path: root/src/test/ui/feature-gates/feature-gate-const_generics-ptr.rs
blob: 1ab11ce3b4423458705cc5bcc69f5489ff0d13fb (plain)
1
2
3
4
5
6
7
8
9
struct ConstFn<const F: fn()>;
//~^ ERROR const generics are unstable
//~^^ ERROR using function pointers as const generic parameters is unstable

struct ConstPtr<const P: *const u32>;
//~^ ERROR const generics are unstable
//~^^ ERROR using raw pointers as const generic parameters is unstable

fn main() {}