]>
Commit | Line | Data |
---|---|---|
d9bb1a4e | 1 | // check-pass |
85aaf69f | 2 | |
0bf4aa26 XL |
3 | #![feature(fn_traits, unboxed_closures)] |
4 | ||
5 | #[allow(dead_code)] | |
85aaf69f | 6 | struct Foo; |
223e47cc | 7 | |
0bf4aa26 XL |
8 | impl Fn<(&(),)> for Foo { |
9 | extern "rust-call" fn call(&self, (_,): (&(),)) {} | |
10 | } | |
11 | ||
12 | impl FnMut<(&(),)> for Foo { | |
13 | extern "rust-call" fn call_mut(&mut self, (_,): (&(),)) {} | |
14 | } | |
15 | ||
16 | impl FnOnce<(&(),)> for Foo { | |
17 | type Output = (); | |
18 | ||
19 | extern "rust-call" fn call_once(self, (_,): (&(),)) {} | |
20 | } | |
c34b1796 | 21 | |
223e47cc | 22 | fn main() {} |