summaryrefslogtreecommitdiffstats
path: root/src/test/ui/feature-gates/feature-gate-unboxed-closures-method-calls.rs
blob: 42f7c5f0fbaa882885d5e89037b066f0c30e6e5b (plain)
1
2
3
4
5
6
7
8
9
#![allow(dead_code)]

fn foo<F: Fn()>(mut f: F) {
    f.call(()); //~ ERROR use of unstable library feature 'fn_traits'
    f.call_mut(()); //~ ERROR use of unstable library feature 'fn_traits'
    f.call_once(()); //~ ERROR use of unstable library feature 'fn_traits'
}

fn main() {}