about summary refs log tree commit diff
path: root/tests/ui/feature-gates/feature-gate-unboxed-closures-method-calls.rs
blob: bc5b48741b02149427c5790b2b4394ad4568dd30 (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() {}