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