mirror of
https://github.com/rust-lang/rust.git
synced 2024-12-11 08:05:12 +00:00
10 lines
313 B
Rust
10 lines
313 B
Rust
#![allow(dead_code)]
|
|
|
|
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'
|
|
}
|
|
|
|
fn main() {}
|