]> git.lizzy.rs Git - rust.git/blob - src/test/ui/unboxed-closures/unboxed-closures-static-call-wrong-trait.rs
Rollup merge of #89468 - FabianWolff:issue-89358, r=jackh726
[rust.git] / src / test / ui / unboxed-closures / unboxed-closures-static-call-wrong-trait.rs
1 #![feature(unboxed_closures)]
2
3 fn to_fn_mut<A,F:FnMut<A>>(f: F) -> F { f }
4
5 fn main() {
6     let mut_ = to_fn_mut(|x| x);
7     mut_.call((0, )); //~ ERROR no method named `call` found
8 }