| Gary Guo | 6baaa52 | 2022-04-29 15:27:59 +0100 | [diff] [blame] | 1 | error: constant expression depends on a generic parameter |
| Gary Guo | cfee72a | 2024-04-19 16:54:41 +0100 | [diff] [blame] | 2 | --> $DIR/const-expr-generic-err2.rs:2:19 |
| Gary Guo | 6baaa52 | 2022-04-29 15:27:59 +0100 | [diff] [blame] | 3 | | |
| 4 | LL | let _ = [0u8; const { std::mem::size_of::<T>() }]; |
| 5 | | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ |
| 6 | | |
| 7 | = note: this may fail depending on what value the parameter takes |
| 8 | |
| Nilstrieb | 41e8d15 | 2023-11-21 15:44:16 +0000 | [diff] [blame] | 9 | error: aborting due to 1 previous error |
| Gary Guo | 6baaa52 | 2022-04-29 15:27:59 +0100 | [diff] [blame] | 10 | |