]> git.lizzy.rs Git - rust.git/blob - src/test/ui/inline-const/const-expr-generic-err2.stderr
Auto merge of #98051 - davidtwco:split-dwarf-stabilization, r=wesleywiser
[rust.git] / src / test / ui / inline-const / const-expr-generic-err2.stderr
1 error: constant expression depends on a generic parameter
2   --> $DIR/const-expr-generic-err2.rs:4:19
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
9 error: aborting due to previous error
10