Skip to content

Commit f5e8a7d

Browse files
committed
Add new test case
1 parent aa65b08 commit f5e8a7d

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
//run-pass
2+
#![deny(disjoint_capture_migration)]
3+
#![allow(unused_must_use)]
4+
5+
fn filter_try_fold(
6+
predicate: &mut impl FnMut() -> bool,
7+
) -> impl FnMut() -> bool + '_ {
8+
move || predicate()
9+
}
10+
11+
fn main() {
12+
filter_try_fold(&mut || true);
13+
}

0 commit comments

Comments
 (0)