mirror of
https://github.com/rust-lang/rust.git
synced 2024-12-15 01:55:03 +00:00
6c6e7194c2
Add test to prevent future regressions.
9 lines
175 B
Rust
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)
|
|
}
|
|
}
|