]>
Commit | Line | Data |
---|---|---|
5099ac24 | 1 | error[E0015]: cannot call non-const closure in constants |
dfeec247 XL |
2 | --> $DIR/issue-68542-closure-in-array-len.rs:6:13 |
3 | | | |
4 | LL | 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 | 10 | error: aborting due to previous error |
dfeec247 | 11 | |
fc512014 | 12 | For more information about this error, try `rustc --explain E0015`. |