rust/rustfmt-core/tests/target/fn_once.rs

9 lines
175 B
Rust
Raw Normal View History

struct Add(usize);
impl FnOnce<(usize,)> for Add {
type Output = Add;
extern "rust-call" fn call_once(self, to: (usize,)) -> Add {
Add(self.0 + to.0)
}
}