diff options
| author | bors <bors@rust-lang.org> | 2015-01-08 18:40:04 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2015-01-08 18:40:04 +0000 |
| commit | 00b112c45a604fa6f4b59af2a40c9deeadfdb7c6 (patch) | |
| tree | b7ebe956eeb308942c79bb1cd8ca1c4fc016fe83 /src/test/compile-fail/trait-impl-method-mismatch.rs | |
| parent | a8a210b57ef6b2f5f66b8798c80acfde70c9d2e7 (diff) | |
| parent | 7541f82faba6b2839b5e640605d7caab6cc6ec4f (diff) | |
| download | rust-00b112c45a604fa6f4b59af2a40c9deeadfdb7c6.tar.gz rust-00b112c45a604fa6f4b59af2a40c9deeadfdb7c6.zip | |
auto merge of #20760 : alexcrichton/rust/rollup, r=alexcrichton
Diffstat (limited to 'src/test/compile-fail/trait-impl-method-mismatch.rs')
| -rw-r--r-- | src/test/compile-fail/trait-impl-method-mismatch.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/test/compile-fail/trait-impl-method-mismatch.rs b/src/test/compile-fail/trait-impl-method-mismatch.rs index 73224c7b45c..4e2eb224213 100644 --- a/src/test/compile-fail/trait-impl-method-mismatch.rs +++ b/src/test/compile-fail/trait-impl-method-mismatch.rs @@ -10,12 +10,12 @@ trait Mumbo { - fn jumbo(&self, x: &uint) -> uint; + fn jumbo(&self, x: &usize) -> usize; } -impl Mumbo for uint { +impl Mumbo for usize { // Cannot have a larger effect than the trait: - unsafe fn jumbo(&self, x: &uint) { *self + *x; } + unsafe fn jumbo(&self, x: &usize) { *self + *x; } //~^ ERROR expected normal fn, found unsafe fn } |
