From dc0db358abe19481e475e10c32149b53370f1a1c Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Thu, 30 May 2024 05:57:31 +0200 Subject: Merging upstream version 1.72.1+dfsg1. Signed-off-by: Daniel Baumann --- tests/ui/assign-assign.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'tests/ui/assign-assign.rs') diff --git a/tests/ui/assign-assign.rs b/tests/ui/assign-assign.rs index bcf506b39..9db8fb008 100644 --- a/tests/ui/assign-assign.rs +++ b/tests/ui/assign-assign.rs @@ -6,7 +6,7 @@ fn test_assign() { let y: () = x = 10; assert_eq!(x, 10); assert_eq!(y, ()); - let mut z = x = 11; + let mut z: () = x = 11; assert_eq!(x, 11); assert_eq!(z, ()); z = x = 12; @@ -19,7 +19,7 @@ fn test_assign_op() { let y: () = x += 10; assert_eq!(x, 10); assert_eq!(y, ()); - let mut z = x += 11; + let mut z: () = x += 11; assert_eq!(x, 21); assert_eq!(z, ()); z = x += 12; -- cgit v1.2.3