summaryrefslogtreecommitdiffstats
path: root/tests/ui/try-block
diff options
context:
space:
mode:
Diffstat (limited to 'tests/ui/try-block')
-rw-r--r--tests/ui/try-block/issue-45124.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/ui/try-block/issue-45124.rs b/tests/ui/try-block/issue-45124.rs
index 942014c91..2cf2ade65 100644
--- a/tests/ui/try-block/issue-45124.rs
+++ b/tests/ui/try-block/issue-45124.rs
@@ -8,7 +8,7 @@ fn main() {
let mut a = 0;
let () = {
let _: Result<(), ()> = try {
- let _ = Err(())?;
+ let () = Err(())?;
return
};
a += 1;