]> git.proxmox.com Git - rustc.git/blame - src/test/ui/issues/issue-19982.rs
New upstream version 1.49.0+dfsg1
[rustc.git] / src / test / ui / issues / issue-19982.rs
CommitLineData
d9bb1a4e 1// check-pass
85aaf69f 2
0bf4aa26
XL
3#![feature(fn_traits, unboxed_closures)]
4
5#[allow(dead_code)]
85aaf69f 6struct Foo;
223e47cc 7
0bf4aa26
XL
8impl Fn<(&(),)> for Foo {
9 extern "rust-call" fn call(&self, (_,): (&(),)) {}
10}
11
12impl FnMut<(&(),)> for Foo {
13 extern "rust-call" fn call_mut(&mut self, (_,): (&(),)) {}
14}
15
16impl FnOnce<(&(),)> for Foo {
17 type Output = ();
18
19 extern "rust-call" fn call_once(self, (_,): (&(),)) {}
20}
c34b1796 21
223e47cc 22fn main() {}