1 error[E0658]: const generics are unstable
2 --> $DIR/feature-gate-const_generics-ptr.rs:1:22
4 LL | struct ConstFn<const F: fn()>;
7 = note: see issue #44580 <https://github.com/rust-lang/rust/issues/44580> for more information
8 = help: add `#![feature(const_generics)]` to the crate attributes to enable
10 error[E0658]: const generics are unstable
11 --> $DIR/feature-gate-const_generics-ptr.rs:5:23
13 LL | struct ConstPtr<const P: *const u32>;
16 = note: see issue #44580 <https://github.com/rust-lang/rust/issues/44580> for more information
17 = help: add `#![feature(const_generics)]` to the crate attributes to enable
19 error: using function pointers as const generic parameters is forbidden
20 --> $DIR/feature-gate-const_generics-ptr.rs:1:25
22 LL | struct ConstFn<const F: fn()>;
25 error: using raw pointers as const generic parameters is forbidden
26 --> $DIR/feature-gate-const_generics-ptr.rs:5:26
28 LL | struct ConstPtr<const P: *const u32>;
31 error: aborting due to 4 previous errors
33 For more information about this error, try `rustc --explain E0658`.