From b97e7f353ba787c9ecfdc0db874ccffe0b11058c Mon Sep 17 00:00:00 2001 From: Abseil Team Date: Mon, 11 Mar 2024 08:15:51 -0700 Subject: Fix the move to itself PiperOrigin-RevId: 614670264 Change-Id: Id6b1cffa4e104a82234130977235f1eb1021968f --- absl/status/status_test.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'absl/status') diff --git a/absl/status/status_test.cc b/absl/status/status_test.cc index 585e7807..c3327ad7 100644 --- a/absl/status/status_test.cc +++ b/absl/status/status_test.cc @@ -497,8 +497,8 @@ TEST(Status, MoveAssignment) { { absl::Status status(absl::StatusCode::kInvalidArgument, "message"); absl::Status copy(status); - status = static_cast(status); - EXPECT_EQ(status, copy); + assignee = static_cast(status); + EXPECT_EQ(assignee, copy); } } -- cgit v1.2.3