2014-12-05 17:53:30 -06:00
|
|
|
#![allow(dead_code)]
|
|
|
|
|
2016-07-13 09:07:11 -05:00
|
|
|
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'
|
2014-12-05 17:53:30 -06:00
|
|
|
}
|
|
|
|
|
|
|
|
fn main() {}
|