rust/tests/ui/feature-gates/feature-gate-unboxed-closures-ufcs-calls.rs
2023-01-11 09:32:08 +00:00

10 lines
313 B
Rust

#![allow(dead_code)]
fn foo<F: Fn()>(mut f: F) {
Fn::call(&f, ()); //~ ERROR use of unstable library feature 'fn_traits'
FnMut::call_mut(&mut f, ()); //~ ERROR use of unstable library feature 'fn_traits'
FnOnce::call_once(f, ()); //~ ERROR use of unstable library feature 'fn_traits'
}
fn main() {}