]> git.lizzy.rs Git - rust.git/blob - tests/ui/unboxed-closures/unboxed-closures-static-call-wrong-trait.rs
Rollup merge of #106856 - vadorovsky:fix-atomic-annotations, r=joshtriplett
[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 }