blob: c6d77593c46ffe3f786230f99e2d292ea6d0d866 [file] [log] [blame]
Gary Guo6baaa522022-04-29 15:27:59 +01001error: constant expression depends on a generic parameter
Gary Guocfee72a2024-04-19 16:54:41 +01002 --> $DIR/const-expr-generic-err2.rs:2:19
Gary Guo6baaa522022-04-29 15:27:59 +01003 |
4LL | let _ = [0u8; const { std::mem::size_of::<T>() }];
5 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
6 |
7 = note: this may fail depending on what value the parameter takes
8
Nilstrieb41e8d152023-11-21 15:44:16 +00009error: aborting due to 1 previous error
Gary Guo6baaa522022-04-29 15:27:59 +010010