error[E0658]: const generics are unstable --> $DIR/feature-gate-const_generics-ptr.rs:1:22 | LL | struct ConstFn; | ^ | = note: see issue #44580 for more information = help: add `#![feature(const_generics)]` to the crate attributes to enable error[E0658]: const generics are unstable --> $DIR/feature-gate-const_generics-ptr.rs:5:23 | LL | struct ConstPtr; | ^ | = note: see issue #44580 for more information = help: add `#![feature(const_generics)]` to the crate attributes to enable error: using function pointers as const generic parameters is forbidden --> $DIR/feature-gate-const_generics-ptr.rs:1:25 | LL | struct ConstFn; | ^^^^ error: using raw pointers as const generic parameters is forbidden --> $DIR/feature-gate-const_generics-ptr.rs:5:26 | LL | struct ConstPtr; | ^^^^^^^^^^ error: aborting due to 4 previous errors For more information about this error, try `rustc --explain E0658`.