1 error: constant expression depends on a generic parameter
2 --> $DIR/issue-76701-ty-param-in-const.rs:6:21
4 LL | fn ty_param<T>() -> [u8; std::mem::size_of::<T>()] {
5 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
7 = note: this may fail depending on what value the parameter takes
9 error: constant expression depends on a generic parameter
10 --> $DIR/issue-76701-ty-param-in-const.rs:12:37
12 LL | fn const_param<const N: usize>() -> [u8; N + 1] {
15 = note: this may fail depending on what value the parameter takes
17 error: aborting due to 2 previous errors