]> git.lizzy.rs Git - rust.git/blob - tests/ui/unboxed-closures/unboxed-closures-static-call-wrong-trait.rs
Auto merge of #107054 - petrochenkov:effvisdoc3, r=GuillaumeGomez
[rust.git] / tests / ui / unboxed-closures / unboxed-closures-static-call-wrong-trait.rs
1 #![feature(unboxed_closures, tuple_trait)]
2
3 fn to_fn_mut<A:std::marker::Tuple,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 }