rust/tests/ui/unboxed-closures/unboxed-closures-static-call-wrong-trait.rs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

9 lines
216 B
Rust
Raw Normal View History

2022-07-30 00:37:48 -05:00
#![feature(unboxed_closures, tuple_trait)]
2022-07-30 00:37:48 -05:00
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
}