2017-06-15 03:42:24 +00:00
|
|
|
error: `<` is interpreted as a start of generic arguments for `usize`, not a comparison
|
2018-12-04 19:10:32 +00:00
|
|
|
--> $DIR/issue-22644.rs:8:31
|
2017-06-12 06:47:26 +00:00
|
|
|
|
|
2019-03-09 12:03:44 +00:00
|
|
|
LL | println!("{}", a as usize < long_name);
|
2017-07-21 11:59:17 +00:00
|
|
|
| ---------- ^ --------- interpreted as generic arguments
|
|
|
|
| | |
|
|
|
|
| | not interpreted as comparison
|
2018-02-21 15:12:23 +00:00
|
|
|
| help: try comparing the cast value: `(a as usize)`
|
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
|
2018-12-04 19:10:32 +00:00
|
|
|
--> $DIR/issue-22644.rs:9: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);
|
2017-07-21 11:59:17 +00:00
|
|
|
| ---------- ^ -------------------- interpreted as generic arguments
|
|
|
|
| | |
|
|
|
|
| | not interpreted as comparison
|
2018-02-21 15:12:23 +00:00
|
|
|
| help: try comparing the cast value: `(a as usize)`
|
2017-07-03 23:17:01 +00:00
|
|
|
|
|
|
|
error: `<` is interpreted as a start of generic arguments for `usize`, not a comparison
|
2018-12-04 19:10:32 +00:00
|
|
|
--> $DIR/issue-22644.rs:11:31
|
2017-07-03 23:17:01 +00:00
|
|
|
|
|
2019-03-09 12:03:44 +00:00
|
|
|
LL | println!("{}", a as usize < 4);
|
2017-07-21 11:59:17 +00:00
|
|
|
| ---------- ^ - interpreted as generic arguments
|
|
|
|
| | |
|
|
|
|
| | not interpreted as comparison
|
2018-02-21 15:12:23 +00:00
|
|
|
| help: try comparing the cast value: `(a as usize)`
|
2017-07-03 23:17:01 +00:00
|
|
|
|
|
|
|
error: `<` is interpreted as a start of generic arguments for `usize`, not a comparison
|
2018-12-04 19:10:32 +00:00
|
|
|
--> $DIR/issue-22644.rs:13:31
|
2017-07-03 23:17:01 +00:00
|
|
|
|
|
2018-02-23 00:42:32 +00:00
|
|
|
LL | println!("{}{}", a: usize < long_name, long_name);
|
2017-07-21 11:59:17 +00:00
|
|
|
| -------- ^ -------------------- interpreted as generic arguments
|
|
|
|
| | |
|
|
|
|
| | not interpreted as comparison
|
2018-02-21 15:12:23 +00:00
|
|
|
| help: try comparing the cast value: `(a: usize)`
|
2017-07-03 23:17:01 +00:00
|
|
|
|
|
|
|
error: `<` is interpreted as a start of generic arguments for `usize`, not a comparison
|
2018-12-04 19:10:32 +00:00
|
|
|
--> $DIR/issue-22644.rs:15:29
|
2017-07-05 23:39:06 +00:00
|
|
|
|
|
2019-03-09 12:03:44 +00:00
|
|
|
LL | println!("{}", a: usize < 4);
|
2017-07-21 11:59:17 +00:00
|
|
|
| -------- ^ - interpreted as generic arguments
|
|
|
|
| | |
|
|
|
|
| | not interpreted as comparison
|
2018-02-21 15:12:23 +00:00
|
|
|
| help: try comparing the cast value: `(a: usize)`
|
2017-07-05 23:39:06 +00:00
|
|
|
|
|
|
|
error: `<` is interpreted as a start of generic arguments for `usize`, not a comparison
|
2018-12-04 19:10:32 +00:00
|
|
|
--> $DIR/issue-22644.rs:20: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
|
2018-02-21 15:12:23 +00:00
|
|
|
help: try comparing the cast value
|
2017-07-05 23:39:06 +00:00
|
|
|
|
|
2018-02-24 23:01:39 +00:00
|
|
|
LL | println!("{}", (a
|
|
|
|
LL | as
|
|
|
|
LL | usize)
|
2017-07-03 23:17:01 +00:00
|
|
|
|
|
|
|
|
|
|
|
|
error: `<` is interpreted as a start of generic arguments for `usize`, not a comparison
|
2018-12-04 19:10:32 +00:00
|
|
|
--> $DIR/issue-22644.rs:29: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
|
2018-02-21 15:12:23 +00:00
|
|
|
help: try comparing the cast value
|
2017-07-03 23:17:01 +00:00
|
|
|
|
|
2018-02-24 23:01:39 +00:00
|
|
|
LL | println!("{}", (a
|
|
|
|
LL |
|
|
|
|
LL |
|
|
|
|
LL | as
|
|
|
|
LL |
|
|
|
|
LL |
|
2017-07-05 23:39:06 +00:00
|
|
|
...
|
2017-06-12 06:47:26 +00:00
|
|
|
|
2017-10-09 17:02:17 +00:00
|
|
|
error: `<` is interpreted as a start of generic arguments for `usize`, not a shift
|
2018-12-04 19:10:32 +00:00
|
|
|
--> $DIR/issue-22644.rs:32:31
|
2017-10-09 17:02:17 +00:00
|
|
|
|
|
2019-03-09 12:03:44 +00:00
|
|
|
LL | println!("{}", a as usize << long_name);
|
2017-10-09 17:02:17 +00:00
|
|
|
| ---------- ^^ --------- interpreted as generic arguments
|
|
|
|
| | |
|
|
|
|
| | not interpreted as shift
|
2018-02-21 15:12:23 +00:00
|
|
|
| help: try shifting the cast value: `(a as usize)`
|
2017-10-09 17:02:17 +00:00
|
|
|
|
2017-07-03 23:17:01 +00:00
|
|
|
error: expected type, found `4`
|
2018-12-04 19:10:32 +00:00
|
|
|
--> $DIR/issue-22644.rs:34:28
|
2017-07-03 23:17:01 +00:00
|
|
|
|
|
2019-03-09 12:03:44 +00:00
|
|
|
LL | println!("{}", a: &mut 4);
|
2019-07-17 18:40:36 +00:00
|
|
|
| - ^ expected type
|
|
|
|
| |
|
|
|
|
| tried to parse a type due to this type ascription
|
2019-03-13 02:27:10 +00:00
|
|
|
|
|
2019-07-15 21:23:39 +00:00
|
|
|
= note: `#![feature(type_ascription)]` lets you annotate an expression with a type: `<expr>: <type>`
|
2019-07-17 18:40:36 +00:00
|
|
|
= note: for more information, see https://github.com/rust-lang/rust/issues/23416
|
2017-06-15 03:42:24 +00:00
|
|
|
|
2018-03-15 15:13:47 +00:00
|
|
|
error: aborting due to 9 previous errors
|
|
|
|
|