Spot the bug in the moved-from vector

from Move semantics
C++23 (GCC 13.3.0) intermediate 4 min 1 issue to find

Find the invalid assumption about the moved-from vector.

C++
#include <iostream>
#include <string>
#include <utility>
#include <vector>

void archive(std::vector<std::string> pending) {
    auto stored = std::move(pending);
    std::cout << pending[0] << '\n';
    std::cout << stored.size() << '\n';
}
Open in playground
Report an error