mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-23 23:34:48 +00:00
11 lines
338 B
Plaintext
11 lines
338 B
Plaintext
|
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
|
||
|
|
||
|
error: aborting due to previous error
|
||
|
|