]> git.lizzy.rs Git - rust.git/blob - tests/ui/issues/issue-19982.rs
Rollup merge of #106427 - mejrs:translation_errors, r=davidtwco
[rust.git] / tests / 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() {}