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