2017-06-14 20:42:24 -07:00
|
|
|
error: `<` is interpreted as a start of generic arguments for `usize`, not a comparison
|
2017-07-04 02:17:01 +03:00
|
|
|
--> $DIR/issue-22644.rs:16:31
|
2017-06-11 23:47:26 -07:00
|
|
|
|
|
2018-02-23 03:42:32 +03:00
|
|
|
LL | println!("{}", a as usize < long_name); //~ ERROR `<` is interpreted as a start of generic
|
2017-07-21 13:59:17 +02:00
|
|
|
| ---------- ^ --------- interpreted as generic arguments
|
|
|
|
| | |
|
|
|
|
| | not interpreted as comparison
|
2018-02-21 16:12:23 +01:00
|
|
|
| help: try comparing the cast value: `(a as usize)`
|
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
|
2017-07-04 02:17:01 +03:00
|
|
|
--> $DIR/issue-22644.rs:17: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);
|
2017-07-21 13:59:17 +02:00
|
|
|
| ---------- ^ -------------------- interpreted as generic arguments
|
|
|
|
| | |
|
|
|
|
| | not interpreted as comparison
|
2018-02-21 16:12:23 +01:00
|
|
|
| help: try comparing the cast value: `(a as usize)`
|
2017-07-04 02:17:01 +03:00
|
|
|
|
|
|
|
error: `<` is interpreted as a start of generic arguments for `usize`, not a comparison
|
2017-11-20 13:13:27 +01:00
|
|
|
--> $DIR/issue-22644.rs:19:31
|
2017-07-04 02:17:01 +03:00
|
|
|
|
|
2018-02-23 03:42:32 +03:00
|
|
|
LL | println!("{}", a as usize < 4); //~ ERROR `<` is interpreted as a start of generic
|
2017-07-21 13:59:17 +02:00
|
|
|
| ---------- ^ - interpreted as generic arguments
|
|
|
|
| | |
|
|
|
|
| | not interpreted as comparison
|
2018-02-21 16:12:23 +01:00
|
|
|
| help: try comparing the cast value: `(a as usize)`
|
2017-07-04 02:17:01 +03:00
|
|
|
|
|
|
|
error: `<` is interpreted as a start of generic arguments for `usize`, not a comparison
|
2017-11-20 13:13:27 +01:00
|
|
|
--> $DIR/issue-22644.rs:21:31
|
2017-07-04 02:17:01 +03:00
|
|
|
|
|
2018-02-23 03:42:32 +03:00
|
|
|
LL | println!("{}{}", a: usize < long_name, long_name);
|
2017-07-21 13:59:17 +02:00
|
|
|
| -------- ^ -------------------- interpreted as generic arguments
|
|
|
|
| | |
|
|
|
|
| | not interpreted as comparison
|
2018-02-21 16:12:23 +01:00
|
|
|
| help: try comparing the cast value: `(a: usize)`
|
2017-07-04 02:17:01 +03:00
|
|
|
|
|
|
|
error: `<` is interpreted as a start of generic arguments for `usize`, not a comparison
|
2017-11-20 13:13:27 +01:00
|
|
|
--> $DIR/issue-22644.rs:23:29
|
2017-07-05 16:39:06 -07:00
|
|
|
|
|
2018-02-23 03:42:32 +03:00
|
|
|
LL | println!("{}", a: usize < 4); //~ ERROR `<` is interpreted as a start of generic
|
2017-07-21 13:59:17 +02:00
|
|
|
| -------- ^ - interpreted as generic arguments
|
|
|
|
| | |
|
|
|
|
| | not interpreted as comparison
|
2018-02-21 16:12:23 +01:00
|
|
|
| help: try comparing the cast value: `(a: usize)`
|
2017-07-05 16:39:06 -07:00
|
|
|
|
|
|
|
error: `<` is interpreted as a start of generic arguments for `usize`, not a comparison
|
2017-11-20 13:13:27 +01:00
|
|
|
--> $DIR/issue-22644.rs:28:20
|
2017-07-05 16:39:06 -07:00
|
|
|
|
|
2018-02-23 03:42:32 +03:00
|
|
|
LL | < //~ ERROR `<` is interpreted as a start of generic
|
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
|
2018-02-21 16:12:23 +01:00
|
|
|
help: try comparing the cast value
|
2017-07-05 16:39:06 -07:00
|
|
|
|
|
2018-02-25 02:01:39 +03:00
|
|
|
LL | println!("{}", (a
|
|
|
|
LL | as
|
|
|
|
LL | usize)
|
2017-07-04 02:17:01 +03:00
|
|
|
|
|
|
|
|
|
|
|
|
error: `<` is interpreted as a start of generic arguments for `usize`, not a comparison
|
2017-11-20 13:13:27 +01:00
|
|
|
--> $DIR/issue-22644.rs:37:20
|
2017-07-04 02:17:01 +03:00
|
|
|
|
|
2018-02-23 03:42:32 +03:00
|
|
|
LL | < //~ ERROR `<` is interpreted as a start of generic
|
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
|
2018-02-21 16:12:23 +01:00
|
|
|
help: try comparing the cast value
|
2017-07-04 02:17:01 +03:00
|
|
|
|
|
2018-02-25 02:01:39 +03:00
|
|
|
LL | println!("{}", (a
|
|
|
|
LL |
|
|
|
|
LL |
|
|
|
|
LL | as
|
|
|
|
LL |
|
|
|
|
LL |
|
2017-07-05 16:39:06 -07:00
|
|
|
...
|
2017-06-11 23:47:26 -07:00
|
|
|
|
2017-10-09 20:02:17 +03:00
|
|
|
error: `<` is interpreted as a start of generic arguments for `usize`, not a shift
|
2017-11-20 13:13:27 +01:00
|
|
|
--> $DIR/issue-22644.rs:40:31
|
2017-10-09 20:02:17 +03:00
|
|
|
|
|
2018-02-23 03:42:32 +03:00
|
|
|
LL | println!("{}", a as usize << long_name); //~ ERROR `<` is interpreted as a start of generic
|
2017-10-09 20:02:17 +03:00
|
|
|
| ---------- ^^ --------- interpreted as generic arguments
|
|
|
|
| | |
|
|
|
|
| | not interpreted as shift
|
2018-02-21 16:12:23 +01:00
|
|
|
| help: try shifting the cast value: `(a as usize)`
|
2017-10-09 20:02:17 +03:00
|
|
|
|
2017-07-04 02:17:01 +03:00
|
|
|
error: expected type, found `4`
|
2017-11-20 13:13:27 +01:00
|
|
|
--> $DIR/issue-22644.rs:42:28
|
2017-07-04 02:17:01 +03:00
|
|
|
|
|
2018-02-23 03:42:32 +03:00
|
|
|
LL | println!("{}", a: &mut 4); //~ ERROR expected type, found `4`
|
2017-07-16 11:43:24 -07:00
|
|
|
| ^ expecting a type here because of type ascription
|
2017-06-14 20:42:24 -07:00
|
|
|
|
2018-03-15 16:13:47 +01:00
|
|
|
error: aborting due to 9 previous errors
|
|
|
|
|