diff options
| author | Sidney Cammeresi <sac@readyset.io> | 2025-05-07 17:05:44 -0700 |
|---|---|---|
| committer | Sidney Cammeresi <sac@readyset.io> | 2025-05-27 08:31:56 -0700 |
| commit | 1ae96fcd792f000da741e4c73effb7bfb89cee1d (patch) | |
| tree | 0068f327610cb9dd73e84b085e0e496f73432350 /tests/ui/closures | |
| parent | 51d247c2cfbd3aea896c650e5cf25eb0a8e14615 (diff) | |
| download | rust-1ae96fcd792f000da741e4c73effb7bfb89cee1d.tar.gz rust-1ae96fcd792f000da741e4c73effb7bfb89cee1d.zip | |
Update tests with Range parameter to `BTreeMap::extract_if` etc.
Diffstat (limited to 'tests/ui/closures')
| -rw-r--r-- | tests/ui/closures/2229_closure_analysis/run_pass/lit-pattern-matching-with-methods.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/ui/closures/2229_closure_analysis/run_pass/lit-pattern-matching-with-methods.rs b/tests/ui/closures/2229_closure_analysis/run_pass/lit-pattern-matching-with-methods.rs index 7a4d7d9a81e..afb16cf58e8 100644 --- a/tests/ui/closures/2229_closure_analysis/run_pass/lit-pattern-matching-with-methods.rs +++ b/tests/ui/closures/2229_closure_analysis/run_pass/lit-pattern-matching-with-methods.rs @@ -14,14 +14,14 @@ fn main() { map.insert("c", ()); { - let mut it = map.extract_if(|_, _| true); + let mut it = map.extract_if(.., |_, _| true); catch_unwind(AssertUnwindSafe(|| while it.next().is_some() {})).unwrap_err(); let result = catch_unwind(AssertUnwindSafe(|| it.next())); assert!(matches!(result, Ok(None))); } { - let mut it = map.extract_if(|_, _| true); + let mut it = map.extract_if(.., |_, _| true); catch_unwind(AssertUnwindSafe(|| while let Some(_) = it.next() {})).unwrap_err(); let result = catch_unwind(AssertUnwindSafe(|| it.next())); assert!(matches!(result, Ok(None))); |
