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/mutable-class-fields.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/mutable-class-fields.rs')
| -rw-r--r-- | src/test/compile-fail/mutable-class-fields.rs | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/test/compile-fail/mutable-class-fields.rs b/src/test/compile-fail/mutable-class-fields.rs index 4d77d1824ab..a840ac63dd8 100644 --- a/src/test/compile-fail/mutable-class-fields.rs +++ b/src/test/compile-fail/mutable-class-fields.rs @@ -9,11 +9,11 @@ // except according to those terms. struct cat { - meows : uint, - how_hungry : int, + meows : usize, + how_hungry : isize, } -fn cat(in_x : uint, in_y : int) -> cat { +fn cat(in_x : usize, in_y : isize) -> cat { cat { meows: in_x, how_hungry: in_y @@ -21,6 +21,6 @@ fn cat(in_x : uint, in_y : int) -> cat { } fn main() { - let nyan : cat = cat(52u, 99); + let nyan : cat = cat(52us, 99); nyan.how_hungry = 0; //~ ERROR cannot assign } |
