2014-12-05 15:53:30 -08:00
|
|
|
#![allow(dead_code)]
|
|
|
|
|
2015-01-10 08:38:51 -05:00
|
|
|
fn foo<F: Fn()>(mut f: F) {
|
2016-07-13 17:07:11 +03:00
|
|
|
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'
|
2014-12-05 15:53:30 -08:00
|
|
|
}
|
|
|
|
|
|
|
|
fn main() {}
|