#include <utility>
using namespace std;

template<class Func, class... Args>
auto test_lambda(Func&& func, Args&&... args) {
    return [=]() mutable { func(std::move(args)...); };
}

void test_int(int*){}

int main() {
    int arr[5];
    test_lambda(test_int, arr);
}