Add new test case

This commit is contained in:
Roxane 2021-07-03 14:39:10 -04:00
parent aa65b08b1d
commit f5e8a7d398

View File

@ -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);
}