1 error[E0658]: const generics are unstable
2 --> $DIR/feature-gate-const_generics.rs:1:14
4 LL | fn foo<const X: ()>() {}
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.rs:3:18
13 LL | struct Foo<const X: usize>([(); X]);
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: aborting due to 2 previous errors
21 For more information about this error, try `rustc --explain E0658`.