2019-07-02 16:30:28 -05:00
|
|
|
// build-pass (FIXME(62277): could be check-pass?)
|
2015-03-15 14:44:37 -05:00
|
|
|
|
2018-10-08 01:48:51 -05:00
|
|
|
#![feature(fn_traits, unboxed_closures)]
|
|
|
|
|
|
|
|
#[allow(dead_code)]
|
2015-03-15 14:44:37 -05:00
|
|
|
struct Foo;
|
|
|
|
|
2018-10-08 01:48:51 -05:00
|
|
|
impl Fn<(&(),)> for Foo {
|
|
|
|
extern "rust-call" fn call(&self, (_,): (&(),)) {}
|
|
|
|
}
|
|
|
|
|
|
|
|
impl FnMut<(&(),)> for Foo {
|
|
|
|
extern "rust-call" fn call_mut(&mut self, (_,): (&(),)) {}
|
|
|
|
}
|
|
|
|
|
|
|
|
impl FnOnce<(&(),)> for Foo {
|
|
|
|
type Output = ();
|
|
|
|
|
|
|
|
extern "rust-call" fn call_once(self, (_,): (&(),)) {}
|
|
|
|
}
|
2015-03-15 14:44:37 -05:00
|
|
|
|
|
|
|
fn main() {}
|