2022-07-30 00:37:48 -05:00
|
|
|
#![feature(unboxed_closures, tuple_trait)]
|
2014-08-20 11:12:16 -05:00
|
|
|
|
2022-07-30 00:37:48 -05:00
|
|
|
fn to_fn_mut<A:std::marker::Tuple,F:FnMut<A>>(f: F) -> F { f }
|
2015-02-03 10:32:26 -06:00
|
|
|
|
2014-08-20 11:12:16 -05:00
|
|
|
fn main() {
|
2015-02-03 10:32:26 -06:00
|
|
|
let mut_ = to_fn_mut(|x| x);
|
2015-05-03 00:30:59 -05:00
|
|
|
mut_.call((0, )); //~ ERROR no method named `call` found
|
2014-08-20 11:12:16 -05:00
|
|
|
}
|