]>
Commit | Line | Data |
---|---|---|
041b39d2 XL |
1 | // Copyright 2017 The Rust Project Developers. See the COPYRIGHT |
2 | // file at the top-level directory of this distribution and at | |
3 | // http://rust-lang.org/COPYRIGHT. | |
4 | // | |
5 | // Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or | |
6 | // http://www.apache.org/licenses/LICENSE-2.0> or the MIT license | |
7 | // <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your | |
8 | // option. This file may not be copied, modified, or distributed | |
9 | // except according to those terms. | |
10 | ||
11 | fn main() { | |
12 | let a : u32 = 0; | |
13 | let long_name : usize = 0; | |
14 | ||
15 | println!("{}", a as usize > long_name); | |
16 | println!("{}", a as usize < long_name); | |
17 | println!("{}{}", a as usize < long_name, long_name); | |
18 | println!("{}", a as usize < 4); | |
19 | println!("{}", a: usize > long_name); | |
20 | println!("{}{}", a: usize < long_name, long_name); | |
21 | println!("{}", a: usize < 4); | |
22 | ||
23 | println!("{}", a | |
24 | as | |
25 | usize | |
26 | < | |
27 | 4); | |
28 | println!("{}", a | |
29 | ||
30 | ||
31 | as | |
32 | ||
33 | ||
34 | usize | |
35 | < | |
36 | 5); | |
37 | ||
abe05a73 XL |
38 | println!("{}", a as usize << long_name); |
39 | ||
041b39d2 XL |
40 | println!("{}", a: &mut 4); |
41 | } |