2022-04-29 09:27:59 -05:00
|
|
|
error: constant expression depends on a generic parameter
|
|
|
|
--> $DIR/const-expr-generic-err2.rs:4:19
|
|
|
|
|
|
|
|
|
LL | let _ = [0u8; const { std::mem::size_of::<T>() }];
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
|
= note: this may fail depending on what value the parameter takes
|
|
|
|
|
2023-11-21 09:44:16 -06:00
|
|
|
error: aborting due to 1 previous error
|
2022-04-29 09:27:59 -05:00
|
|
|
|