diff --git a/test/posix-test.cc b/test/posix-test.cc index 2dd3f046..e6332bf0 100644 --- a/test/posix-test.cc +++ b/test/posix-test.cc @@ -232,7 +232,7 @@ TEST(FileTest, MoveAssignmentClosesFile) { File OpenBufferedFile(int &fd) { File f = open_file(); fd = f.descriptor(); - return std::move(f); + return f; } TEST(FileTest, MoveFromTemporaryInCtor) {