]> git.proxmox.com Git - rustc.git/blob - src/test/ui/issues/issue-19982.rs
New upstream version 1.48.0~beta.8+dfsg1
[rustc.git] / src / test / ui / issues / issue-19982.rs
1 // check-pass
2
3 #![feature(fn_traits, unboxed_closures)]
4
5 #[allow(dead_code)]
6 struct Foo;
7
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 }
21
22 fn main() {}