summaryrefslogtreecommitdiffstats
path: root/src/test/ui/feature-gates/feature-gate-unboxed-closures-ufcs-calls.rs
blob: 25c90492eb8f2bec91cd1c90d86685bcd92e1ae3 (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() {}