]> git.proxmox.com Git - rustc.git/blame - src/test/ui/feature-gates/feature-gate-unboxed-closures-method-calls.rs
New upstream version 1.33.0+dfsg1
[rustc.git] / src / test / ui / feature-gates / feature-gate-unboxed-closures-method-calls.rs
CommitLineData
1a4d82fc 1#![allow(dead_code)]
223e47cc 2
85aaf69f 3fn foo<F: Fn()>(mut f: F) {
5bcae85e
SL
4 f.call(()); //~ ERROR use of unstable library feature 'fn_traits'
5 f.call_mut(()); //~ ERROR use of unstable library feature 'fn_traits'
6 f.call_once(()); //~ ERROR use of unstable library feature 'fn_traits'
223e47cc
LB
7}
8
9fn main() {}