]> git.lizzy.rs Git - rust.git/blob - src/tools/rustfmt/tests/target/fn_once.rs
Merge commit 'e36a20c24f35a4cee82bbdc600289104c9237c22' into ra-sync-and-pms-component
[rust.git] / src / tools / rustfmt / tests / target / fn_once.rs
1 struct Add(usize);
2
3 impl FnOnce<(usize,)> for Add {
4     type Output = Add;
5     extern "rust-call" fn call_once(self, to: (usize,)) -> Add {
6         Add(self.0 + to.0)
7     }
8 }