Static lambdas cannot have captures. They may still end up in the constant evaluator though. They've been diagnosted appropriately before, so just reject them here. This is similar to #74661, but for the new constant expression interpreter.
8.6 KiB
8.6 KiB