#include <memory>       // std::unique_ptr

struct Foo
{
    const std::unique_ptr<void> bar;

    Foo(Foo&& other) : bar( static_cast<std::unique_ptr<void>&&>( other.bar ) ) {}
};

int main() {}
