2017-06-14 22:42:24 -05:00
|
|
|
error: `<` is interpreted as a start of generic arguments for `usize`, not a comparison
|
2017-06-12 01:47:26 -05:00
|
|
|
--> $DIR/issue-22644.rs:16:33
|
|
|
|
|
|
|
|
|
16 | println!("{}", a as usize < b);
|
2017-06-12 12:22:08 -05:00
|
|
|
| - ^ interpreted as generic argument
|
|
|
|
| |
|
|
|
|
| not interpreted as comparison
|
2017-06-12 01:47:26 -05:00
|
|
|
|
|
2017-06-12 01:49:28 -05:00
|
|
|
help: if you want to compare the casted value then write:
|
2017-06-25 15:11:22 -05:00
|
|
|
16 | println!("{}", (a as usize) < b);
|
2017-06-12 01:47:26 -05:00
|
|
|
|
2017-06-14 22:42:24 -05:00
|
|
|
error: `<` is interpreted as a start of generic arguments for `usize`, not a comparison
|
2017-06-12 01:47:26 -05:00
|
|
|
--> $DIR/issue-22644.rs:17:33
|
|
|
|
|
|
|
|
|
17 | println!("{}", a as usize < 4);
|
2017-06-12 12:22:08 -05:00
|
|
|
| - ^ interpreted as generic argument
|
|
|
|
| |
|
|
|
|
| not interpreted as comparison
|
2017-06-12 01:47:26 -05:00
|
|
|
|
|
2017-06-12 01:49:28 -05:00
|
|
|
help: if you want to compare the casted value then write:
|
2017-06-25 15:11:22 -05:00
|
|
|
17 | println!("{}", (a as usize) < 4);
|
2017-06-12 01:47:26 -05:00
|
|
|
|
2017-07-02 08:09:09 -05:00
|
|
|
error: aborting due to 2 previous errors
|
2017-06-14 22:42:24 -05:00
|
|
|
|