]> git.proxmox.com Git - rustc.git/blame - src/test/ui/consts/issue-68542-closure-in-array-len.stderr
Update unsuspicious file list
[rustc.git] / src / test / ui / consts / issue-68542-closure-in-array-len.stderr
CommitLineData
5099ac24 1error[E0015]: cannot call non-const closure in constants
dfeec247
XL
2 --> $DIR/issue-68542-closure-in-array-len.rs:6:13
3 |
4LL | a: [(); (|| { 0 })()]
5 | ^^^^^^^^^^^^
5099ac24
FG
6 |
7 = note: closures need an RFC before allowed to be called in constants
8 = note: calls in constants are limited to constant functions, tuple structs and tuple variants
dfeec247 9
fc512014 10error: aborting due to previous error
dfeec247 11
fc512014 12For more information about this error, try `rustc --explain E0015`.