]> git.lizzy.rs Git - rust.git/blob - src/test/ui/feature-gates/feature-gate-unboxed-closures-method-calls.rs
Rollup merge of #94449 - GuillaumeGomez:explanation-e0726, r=Urgau
[rust.git] / src / test / ui / feature-gates / feature-gate-unboxed-closures-method-calls.rs
1 #![allow(dead_code)]
2
3 fn foo<F: Fn()>(mut f: F) {
4     f.call(()); //~ ERROR use of unstable library feature 'fn_traits'
5     f.call_mut(()); //~ ERROR use of unstable library feature 'fn_traits'
6     f.call_once(()); //~ ERROR use of unstable library feature 'fn_traits'
7 }
8
9 fn main() {}