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) {
|
2024-11-02 16:10:24 -07: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() {}
|