rust/tests/target/fn_once.rs
Tim Kuehn 6c6e7194c2 Fix 1-tuple regression.
Add test to prevent future regressions.
2015-10-01 11:06:49 -07:00

9 lines
175 B
Rust

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)
}
}