]> git.lizzy.rs Git - rust.git/blob - src/test/ui/consts/issue-68542-closure-in-array-len.stderr
Rollup merge of #84392 - dario23:fmt-assert-args-pub, r=varkor,RalfJung
[rust.git] / src / test / ui / consts / issue-68542-closure-in-array-len.stderr
1 error[E0015]: calls in constants are limited to constant functions, tuple structs and tuple variants
2   --> $DIR/issue-68542-closure-in-array-len.rs:6:13
3    |
4 LL |     a: [(); (|| { 0 })()]
5    |             ^^^^^^^^^^^^
6
7 error: aborting due to previous error
8
9 For more information about this error, try `rustc --explain E0015`.