2017-06-15 03:42:24 +00:00
|
|
|
error: `<` is interpreted as a start of generic arguments for `usize`, not a comparison
|
2017-06-12 06:47:26 +00:00
|
|
|
--> $DIR/issue-22644.rs:16:33
|
|
|
|
|
|
|
|
|
16 | println!("{}", a as usize < b);
|
2017-06-12 17:22:08 +00:00
|
|
|
| - ^ interpreted as generic argument
|
|
|
|
| |
|
|
|
|
| not interpreted as comparison
|
2017-06-12 06:47:26 +00:00
|
|
|
|
|
2017-06-12 06:49:28 +00:00
|
|
|
help: if you want to compare the casted value then write:
|
2017-06-28 06:16:04 +00:00
|
|
|
|
|
2017-06-25 20:11:22 +00:00
|
|
|
16 | println!("{}", (a as usize) < b);
|
2017-06-28 06:16:04 +00:00
|
|
|
| ^^^^^^^^^^^^
|
2017-06-12 06:47:26 +00:00
|
|
|
|
2017-06-15 03:42:24 +00:00
|
|
|
error: `<` is interpreted as a start of generic arguments for `usize`, not a comparison
|
2017-07-05 23:39:06 +00:00
|
|
|
--> $DIR/issue-22644.rs:21:20
|
2017-06-12 06:47:26 +00:00
|
|
|
|
|
2017-07-05 23:39:06 +00:00
|
|
|
20 | <
|
|
|
|
| - not interpreted as comparison
|
|
|
|
21 | 4);
|
|
|
|
| ^ interpreted as generic argument
|
2017-06-12 06:47:26 +00:00
|
|
|
|
|
2017-06-12 06:49:28 +00:00
|
|
|
help: if you want to compare the casted value then write:
|
2017-06-28 06:16:04 +00:00
|
|
|
|
|
2017-07-05 23:39:06 +00:00
|
|
|
17 | println!("{}", (a
|
|
|
|
18 | as
|
|
|
|
19 | usize)
|
|
|
|
|
|
|
|
|
|
|
|
|
error: `<` is interpreted as a start of generic arguments for `usize`, not a comparison
|
|
|
|
--> $DIR/issue-22644.rs:30:20
|
|
|
|
|
|
|
|
|
29 | <
|
|
|
|
| - not interpreted as comparison
|
|
|
|
30 | 5);
|
|
|
|
| ^ interpreted as generic argument
|
|
|
|
|
|
|
|
|
help: if you want to compare the casted value then write:
|
|
|
|
|
|
|
|
|
22 | println!("{}", (a
|
|
|
|
23 |
|
|
|
|
24 |
|
|
|
|
25 | as
|
|
|
|
26 |
|
|
|
|
27 |
|
|
|
|
...
|
2017-06-12 06:47:26 +00:00
|
|
|
|
2017-07-05 23:39:06 +00:00
|
|
|
error: aborting due to 3 previous errors
|
2017-06-15 03:42:24 +00:00
|
|
|
|