2017-06-09 22:30:33 -05:00
|
|
|
fn main() {
|
2022-11-16 14:46:06 -06:00
|
|
|
let a: usize = 0;
|
|
|
|
let long_name: usize = 0;
|
2017-07-03 18:17:01 -05:00
|
|
|
|
|
|
|
println!("{}", a as usize > long_name);
|
2017-11-20 06:13:27 -06:00
|
|
|
println!("{}", a as usize < long_name); //~ ERROR `<` is interpreted as a start of generic
|
2017-07-03 18:17:01 -05:00
|
|
|
println!("{}{}", a as usize < long_name, long_name);
|
2017-11-20 06:13:27 -06:00
|
|
|
//~^ ERROR `<` is interpreted as a start of generic
|
|
|
|
println!("{}", a as usize < 4); //~ ERROR `<` is interpreted as a start of generic
|
2017-06-09 22:30:33 -05:00
|
|
|
|
2017-07-05 18:39:06 -05:00
|
|
|
println!("{}", a
|
|
|
|
as
|
|
|
|
usize
|
2017-11-20 06:13:27 -06:00
|
|
|
< //~ ERROR `<` is interpreted as a start of generic
|
2017-07-05 18:39:06 -05:00
|
|
|
4);
|
|
|
|
println!("{}", a
|
|
|
|
|
|
|
|
|
|
|
|
as
|
|
|
|
|
|
|
|
|
|
|
|
usize
|
2017-11-20 06:13:27 -06:00
|
|
|
< //~ ERROR `<` is interpreted as a start of generic
|
2017-07-05 18:39:06 -05:00
|
|
|
5);
|
2017-07-03 18:17:01 -05:00
|
|
|
|
2022-08-24 15:41:51 -05:00
|
|
|
println!("{}", a as usize << long_name); //~ ERROR `<<` is interpreted as a start of generic
|
2017-06-09 22:30:33 -05:00
|
|
|
}
|