1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-26 16:17:45 +00:00

Tests: Use AK_MAKE_DEFAULT_MOVABLE to avoid mistakes in default impls

This commit is contained in:
Ben Wiederhake 2023-06-16 16:13:41 +02:00 committed by Sam Atkins
parent 8ae60dd234
commit 2b2e0a4c5a
3 changed files with 3 additions and 5 deletions

View file

@ -96,10 +96,10 @@ TEST_CASE(move_moves)
{
struct NoCopy {
AK_MAKE_NONCOPYABLE(NoCopy);
AK_MAKE_DEFAULT_MOVABLE(NoCopy);
public:
NoCopy() = default;
NoCopy(NoCopy&&) = default;
};
Variant<NoCopy, int> first_variant { 42 };