2017-06-14 20:42:24 -07:00
|
|
|
error: `<` is interpreted as a start of generic arguments for `usize`, not a comparison
|
2022-11-16 21:46:06 +01:00
|
|
|
--> $DIR/issue-22644.rs:6:31
|
2017-06-11 23:47:26 -07:00
|
|
|
|
|
2019-03-09 15:03:44 +03:00
|
|
|
LL | println!("{}", a as usize < long_name);
|
2021-06-28 11:22:47 -07:00
|
|
|
| ^ --------- interpreted as generic arguments
|
|
|
|
| |
|
|
|
|
| not interpreted as comparison
|
|
|
|
|
|
|
|
|
help: try comparing the cast value
|
|
|
|
|
|
|
|
|
LL | println!("{}", (a as usize) < long_name);
|
2021-06-21 19:07:19 -07:00
|
|
|
| + +
|
2017-06-11 23:47:26 -07:00
|
|
|
|
2017-06-14 20:42:24 -07:00
|
|
|
error: `<` is interpreted as a start of generic arguments for `usize`, not a comparison
|
2022-11-16 21:46:06 +01:00
|
|
|
--> $DIR/issue-22644.rs:7:33
|
2017-06-11 23:47:26 -07:00
|
|
|
|
|
2018-02-23 03:42:32 +03:00
|
|
|
LL | println!("{}{}", a as usize < long_name, long_name);
|
2021-06-28 11:22:47 -07:00
|
|
|
| ^ -------------------- interpreted as generic arguments
|
|
|
|
| |
|
|
|
|
| not interpreted as comparison
|
|
|
|
|
|
|
|
|
help: try comparing the cast value
|
|
|
|
|
|
|
|
|
LL | println!("{}{}", (a as usize) < long_name, long_name);
|
2021-06-21 19:07:19 -07:00
|
|
|
| + +
|
2017-07-04 02:17:01 +03:00
|
|
|
|
|
|
|
error: `<` is interpreted as a start of generic arguments for `usize`, not a comparison
|
2022-11-16 21:46:06 +01:00
|
|
|
--> $DIR/issue-22644.rs:9:31
|
2017-07-04 02:17:01 +03:00
|
|
|
|
|
2019-03-09 15:03:44 +03:00
|
|
|
LL | println!("{}", a as usize < 4);
|
2021-06-28 11:22:47 -07:00
|
|
|
| ^ - interpreted as generic arguments
|
|
|
|
| |
|
|
|
|
| not interpreted as comparison
|
|
|
|
|
|
|
|
|
help: try comparing the cast value
|
|
|
|
|
|
|
|
|
LL | println!("{}", (a as usize) < 4);
|
2021-06-21 19:07:19 -07:00
|
|
|
| + +
|
2017-07-04 02:17:01 +03:00
|
|
|
|
|
|
|
error: `<` is interpreted as a start of generic arguments for `usize`, not a comparison
|
2022-11-16 21:46:06 +01:00
|
|
|
--> $DIR/issue-22644.rs:14:20
|
2017-07-05 16:39:06 -07:00
|
|
|
|
|
2019-03-09 15:03:44 +03:00
|
|
|
LL | <
|
2017-07-04 02:17:01 +03:00
|
|
|
| ^ not interpreted as comparison
|
2018-02-23 03:42:32 +03:00
|
|
|
LL | 4);
|
2017-07-04 02:17:01 +03:00
|
|
|
| - interpreted as generic arguments
|
2019-10-23 22:20:58 -07:00
|
|
|
|
|
2018-02-21 16:12:23 +01:00
|
|
|
help: try comparing the cast value
|
2017-07-05 16:39:06 -07:00
|
|
|
|
|
2021-06-21 19:07:19 -07:00
|
|
|
LL ~ println!("{}", (a
|
2018-02-25 02:01:39 +03:00
|
|
|
LL | as
|
2021-06-21 19:07:19 -07:00
|
|
|
LL ~ usize)
|
2017-07-04 02:17:01 +03:00
|
|
|
|
|
|
|
|
|
|
|
|
error: `<` is interpreted as a start of generic arguments for `usize`, not a comparison
|
2022-11-16 21:46:06 +01:00
|
|
|
--> $DIR/issue-22644.rs:23:20
|
2017-07-04 02:17:01 +03:00
|
|
|
|
|
2019-03-09 15:03:44 +03:00
|
|
|
LL | <
|
2017-07-04 02:17:01 +03:00
|
|
|
| ^ not interpreted as comparison
|
2018-02-23 03:42:32 +03:00
|
|
|
LL | 5);
|
2017-07-04 02:17:01 +03:00
|
|
|
| - interpreted as generic arguments
|
2019-10-23 22:20:58 -07:00
|
|
|
|
|
2018-02-21 16:12:23 +01:00
|
|
|
help: try comparing the cast value
|
2017-07-04 02:17:01 +03:00
|
|
|
|
|
2021-06-21 19:07:19 -07:00
|
|
|
LL ~ println!("{}", (a
|
2024-04-25 13:17:29 +03:00
|
|
|
LL |
|
2024-06-20 04:25:17 +00:00
|
|
|
...
|
2024-04-25 13:17:29 +03:00
|
|
|
LL |
|
2022-06-06 19:26:50 +04:00
|
|
|
LL ~ usize)
|
|
|
|
|
|
2017-06-11 23:47:26 -07:00
|
|
|
|
2022-08-24 22:41:51 +02:00
|
|
|
error: `<<` is interpreted as a start of generic arguments for `usize`, not a shift
|
2022-11-16 21:46:06 +01:00
|
|
|
--> $DIR/issue-22644.rs:26:31
|
2017-10-09 20:02:17 +03:00
|
|
|
|
|
2019-03-09 15:03:44 +03:00
|
|
|
LL | println!("{}", a as usize << long_name);
|
2021-06-28 11:22:47 -07:00
|
|
|
| ^^ --------- interpreted as generic arguments
|
|
|
|
| |
|
|
|
|
| not interpreted as shift
|
|
|
|
|
|
|
|
|
help: try shifting the cast value
|
|
|
|
|
|
|
|
|
LL | println!("{}", (a as usize) << long_name);
|
2021-06-21 19:07:19 -07:00
|
|
|
| + +
|
2017-10-09 20:02:17 +03:00
|
|
|
|
2022-11-16 21:46:06 +01:00
|
|
|
error: aborting due to 6 previous errors
|
2018-03-15 16:13:47 +01:00
|
|
|
|