Add new test case
This commit is contained in:
parent
aa65b08b1d
commit
f5e8a7d398
1 changed files with 13 additions and 0 deletions
|
@ -0,0 +1,13 @@
|
||||||
|
//run-pass
|
||||||
|
#![deny(disjoint_capture_migration)]
|
||||||
|
#![allow(unused_must_use)]
|
||||||
|
|
||||||
|
fn filter_try_fold(
|
||||||
|
predicate: &mut impl FnMut() -> bool,
|
||||||
|
) -> impl FnMut() -> bool + '_ {
|
||||||
|
move || predicate()
|
||||||
|
}
|
||||||
|
|
||||||
|
fn main() {
|
||||||
|
filter_try_fold(&mut || true);
|
||||||
|
}
|
Loading…
Add table
Add a link
Reference in a new issue