instead of during ast lowering, where it's not easily possible to obtain all the right information in time
9 lines
227 B
Plaintext
9 lines
227 B
Plaintext
error: cannot use `const` closures outside of const contexts
|
|
--> $DIR/non-const-op-const-closure-non-const-outer.rs:14:6
|
|
|
|
|
LL | (const || { (()).foo() })();
|
|
| ^^^^^^^^
|
|
|
|
error: aborting due to 1 previous error
|
|
|