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