1 error: generic parameters may not be used in const operations
2 --> $DIR/issue-67945-4.rs:10:27
4 LL | let x: Option<Box<S>> = None;
5 | ^ cannot perform const operation using `S`
7 = note: type parameters may not be used in const expressions
8 = help: use `#![feature(generic_const_exprs)]` to allow generic const expressions
10 error[E0392]: parameter `S` is never used
11 --> $DIR/issue-67945-4.rs:8:12
16 = help: consider removing `S`, referring to it in a field, or using a marker such as `PhantomData`
17 = help: if you intended `S` to be a const parameter, use `const S: usize` instead
19 error: aborting due to 2 previous errors
21 For more information about this error, try `rustc --explain E0392`.