mirror of
https://github.com/rust-lang/rust.git
synced 2024-12-03 12:13:43 +00:00
Add new test case
This commit is contained in:
parent
aa65b08b1d
commit
f5e8a7d398
@ -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…
Reference in New Issue
Block a user