rust/tests/ui/inline-const/const-expr-generic-err2.stderr

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

11 lines
340 B
Plaintext
Raw Normal View History

error: constant expression depends on a generic parameter
2024-04-19 23:54:41 +08:00
--> $DIR/const-expr-generic-err2.rs:2: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 1 previous error