about summary refs log tree commit diff
path: root/tests/ui/feature-gates/feature-gate-unboxed-closures-ufcs-calls.rs
blob: 137e7d71e919c2f05777faf1dd931942a53f6af6 (plain)
1
2
3
4
5
6
7
8
9
#![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() {}