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