aboutsummaryrefslogtreecommitdiffstats
path: root/src/fnnop.rs
blob: 871a6ab7727982e4a80d1328ee0132dc7c22fdf4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
// This module needs the following features.
//
//#![feature(unboxed_closures)]
//#![feature(fn_traits)]

pub struct FnNOP();

impl Fn<()> for FnNOP {
    extern "rust-call" fn call(&self, _args: ()) {}
}
impl FnMut<()> for FnNOP {
    extern "rust-call" fn call_mut(&mut self, _args: ()) {}
}
impl FnOnce<()> for FnNOP {
    type Output = ();
    extern "rust-call" fn call_once(self, _args: ()) {}
}

static mut NOP: FnNOP = FnNOP();