]> git.lizzy.rs Git - rust.git/blob - tests/ui/feature-gates/feature-gate-unboxed-closures-ufcs-calls.rs
Auto merge of #105603 - oli-obk:non_repeatable_queries, r=petrochenkov
[rust.git] / tests / ui / feature-gates / feature-gate-unboxed-closures-ufcs-calls.rs
1 #![allow(dead_code)]
2
3 fn foo<F: Fn()>(mut f: F) {
4     Fn::call(&f, ()); //~ ERROR use of unstable library feature 'fn_traits'
5     FnMut::call_mut(&mut f, ()); //~ ERROR use of unstable library feature 'fn_traits'
6     FnOnce::call_once(f, ()); //~ ERROR use of unstable library feature 'fn_traits'
7 }
8
9 fn main() {}