diff options
Diffstat (limited to 'src/test/auxiliary/go_trait.rs')
| -rw-r--r-- | src/test/auxiliary/go_trait.rs | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/src/test/auxiliary/go_trait.rs b/src/test/auxiliary/go_trait.rs index 4902766534a..0a921c8f5b3 100644 --- a/src/test/auxiliary/go_trait.rs +++ b/src/test/auxiliary/go_trait.rs @@ -11,33 +11,33 @@ // Common code used for tests that model the Fn/FnMut/FnOnce hierarchy. pub trait Go { - fn go(&self, arg: int); + fn go(&self, arg: isize); } -pub fn go<G:Go>(this: &G, arg: int) { +pub fn go<G:Go>(this: &G, arg: isize) { this.go(arg) } pub trait GoMut { - fn go_mut(&mut self, arg: int); + fn go_mut(&mut self, arg: isize); } -pub fn go_mut<G:GoMut>(this: &mut G, arg: int) { +pub fn go_mut<G:GoMut>(this: &mut G, arg: isize) { this.go_mut(arg) } pub trait GoOnce { - fn go_once(self, arg: int); + fn go_once(self, arg: isize); } -pub fn go_once<G:GoOnce>(this: G, arg: int) { +pub fn go_once<G:GoOnce>(this: G, arg: isize) { this.go_once(arg) } impl<G> GoMut for G where G : Go { - fn go_mut(&mut self, arg: int) { + fn go_mut(&mut self, arg: isize) { go(&*self, arg) } } @@ -45,7 +45,7 @@ impl<G> GoMut for G impl<G> GoOnce for G where G : GoMut { - fn go_once(mut self, arg: int) { + fn go_once(mut self, arg: isize) { go_mut(&mut self, arg) } } |
