// -*- rust -*- fn main() { let u32 word = u32(200000); word = word - u32(1); check(word == u32(199999)); } // -*- rust -*- fn main() { let u32 word = (200000 as u32); word = word - (1 as u32); check(word == (199999 as u32)); } // -*- rust -*- fn main() { let u32 word = (200000u32); word = word - (1u32); check(word == (199999u32)); } // -*- rust -*- fn main() { let u32 word = (200000u32); word = word - (1u32); assert (word == (199999u32)); } // -*- rust -*- fn main() { let u32 word = (200000u32); word = word - (1u32); check(word == (199999u32)); } // -*- rust -*- fn main() { let u32 word = (200000u32); word = word - (1u32); assert (word == (199999u32)); } // -*- rust -*- fn main() { let u32 word = 200000u32; word = word - 1u32; assert (word == 199999u32); } // -*- rust -*- fn main() { let word: u32 = 200000u32; word = word - 1u32; assert (word == 199999u32); } // -*- rust -*- fn main() { let word: u32 = 200000u32; word = word - 1u32; assert (word == 199999u32); } // -*- rust -*- fn main() { let mut word: u32 = 200000u32; word = word - 1u32; assert (word == 199999u32); } // Copyright 2012 The Rust Project Developers. See the COPYRIGHT // file at the top-level directory of this distribution and at // http://rust-lang.org/COPYRIGHT. // // Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or // http://www.apache.org/licenses/LICENSE-2.0> or the MIT license // <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your // option. This file may not be copied, modified, or distributed // except according to those terms. // -*- rust -*- fn main() { let mut word: u32 = 200000u32; word = word - 1u32; assert (word == 199999u32); } // Copyright 2012 The Rust Project Developers. See the COPYRIGHT // file at the top-level directory of this distribution and at // http://rust-lang.org/COPYRIGHT. // // Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or // http://www.apache.org/licenses/LICENSE-2.0> or the MIT license // <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your // option. This file may not be copied, modified, or distributed // except according to those terms. // -*- rust -*- pub fn main() { let mut word: u32 = 200000u32; word = word - 1u32; assert (word == 199999u32); } // Copyright 2012 The Rust Project Developers. See the COPYRIGHT // file at the top-level directory of this distribution and at // http://rust-lang.org/COPYRIGHT. // // Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or // http://www.apache.org/licenses/LICENSE-2.0> or the MIT license // <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your // option. This file may not be copied, modified, or distributed // except according to those terms. // -*- rust -*- pub fn main() { let mut word: u32 = 200000u32; word = word - 1u32; fail_unless!((word == 199999u32)); } // Copyright 2012 The Rust Project Developers. See the COPYRIGHT // file at the top-level directory of this distribution and at // http://rust-lang.org/COPYRIGHT. // // Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or // http://www.apache.org/licenses/LICENSE-2.0> or the MIT license // <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your // option. This file may not be copied, modified, or distributed // except according to those terms. // -*- rust -*- pub fn main() { let mut word: u32 = 200000u32; word = word - 1u32; assert!((word == 199999u32)); } // Copyright 2012 The Rust Project Developers. See the COPYRIGHT // file at the top-level directory of this distribution and at // http://rust-lang.org/COPYRIGHT. // // Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or // http://www.apache.org/licenses/LICENSE-2.0> or the MIT license // <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your // option. This file may not be copied, modified, or distributed // except according to those terms. // -*- rust -*- pub fn main() { let mut word: u32 = 200000u32; word = word - 1u32; assert_eq!(word, 199999u32); } // Copyright 2012 The Rust Project Developers. See the COPYRIGHT // file at the top-level directory of this distribution and at // http://rust-lang.org/COPYRIGHT. // // Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or // http://www.apache.org/licenses/LICENSE-2.0> or the MIT license // <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your // option. This file may not be copied, modified, or distributed // except according to those terms. pub fn main() { let mut word: u32 = 200000u32; word = word - 1u32; assert_eq!(word, 199999u32); } // Copyright 2012 The Rust Project Developers. See the COPYRIGHT // file at the top-level directory of this distribution and at // http://rust-lang.org/COPYRIGHT. // // Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or // http://www.apache.org/licenses/LICENSE-2.0> or the MIT license // <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your // option. This file may not be copied, modified, or distributed // except according to those terms. pub fn main() { let mut word: u32 = 200000; word = word - 1; assert_eq!(word, 199999); } // Copyright 2012 The Rust Project Developers. See the COPYRIGHT // file at the top-level directory of this distribution and at // http://rust-lang.org/COPYRIGHT. // // Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or // http://www.apache.org/licenses/LICENSE-2.0> or the MIT license // <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your // option. This file may not be copied, modified, or distributed // except according to those terms. // pretty-expanded FIXME #23616 pub fn main() { let mut word: u32 = 200000; word = word - 1; assert_eq!(word, 199999); } // Copyright 2012 The Rust Project Developers. See the COPYRIGHT // file at the top-level directory of this distribution and at // http://rust-lang.org/COPYRIGHT. // // Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or // http://www.apache.org/licenses/LICENSE-2.0> or the MIT license // <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your // option. This file may not be copied, modified, or distributed // except according to those terms. pub fn main() { let mut word: u32 = 200000; word = word - 1; assert_eq!(word, 199999); }