diff options
author | Abseil Team <absl-team@google.com> | 2024-03-11 08:15:51 -0700 |
---|---|---|
committer | Copybara-Service <copybara-worker@google.com> | 2024-03-11 08:17:04 -0700 |
commit | b97e7f353ba787c9ecfdc0db874ccffe0b11058c (patch) | |
tree | b9e8a33b0bb40244010e2cc448f5085f600c5dda /absl | |
parent | e968256406fd7898d7fde880e31e54b041d32a7e (diff) |
Fix the move to itself
PiperOrigin-RevId: 614670264
Change-Id: Id6b1cffa4e104a82234130977235f1eb1021968f
Diffstat (limited to 'absl')
-rw-r--r-- | absl/status/status_test.cc | 4 |
1 files changed, 2 insertions, 2 deletions
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<absl::Status&&>(status); - EXPECT_EQ(status, copy); + assignee = static_cast<absl::Status&&>(status); + EXPECT_EQ(assignee, copy); } } |