mirror of
https://github.com/rust-lang/rust.git
synced 2024-12-02 11:44:28 +00:00
9 lines
216 B
Rust
9 lines
216 B
Rust
#![feature(unboxed_closures, tuple_trait)]
|
|
|
|
fn to_fn_mut<A:std::marker::Tuple,F:FnMut<A>>(f: F) -> F { f }
|
|
|
|
fn main() {
|
|
let mut_ = to_fn_mut(|x| x);
|
|
mut_.call((0, )); //~ ERROR no method named `call` found
|
|
}
|