2017-06-14 22:42:24 -05:00
|
|
|
error: `<` is interpreted as a start of generic arguments for `usize`, not a comparison
|
2017-07-03 18:17:01 -05:00
|
|
|
--> $DIR/issue-22644.rs:16:31
|
2017-06-12 01:47:26 -05:00
|
|
|
|
|
2017-07-03 18:17:01 -05:00
|
|
|
16 | println!("{}", a as usize < long_name);
|
|
|
|
| ^ --------- interpreted as generic arguments
|
2017-06-12 12:22:08 -05:00
|
|
|
| |
|
|
|
|
| not interpreted as comparison
|
2017-06-12 01:47:26 -05:00
|
|
|
|
|
2017-06-12 01:49:28 -05:00
|
|
|
help: if you want to compare the casted value then write:
|
2017-06-28 01:16:04 -05:00
|
|
|
|
|
2017-07-03 18:17:01 -05:00
|
|
|
16 | println!("{}", (a as usize) < long_name);
|
2017-06-28 01:16:04 -05:00
|
|
|
| ^^^^^^^^^^^^
|
2017-06-12 01:47:26 -05:00
|
|
|
|
2017-06-14 22:42:24 -05:00
|
|
|
error: `<` is interpreted as a start of generic arguments for `usize`, not a comparison
|
2017-07-03 18:17:01 -05:00
|
|
|
--> $DIR/issue-22644.rs:17:33
|
2017-06-12 01:47:26 -05:00
|
|
|
|
|
2017-07-03 18:17:01 -05:00
|
|
|
17 | println!("{}{}", a as usize < long_name, long_name);
|
|
|
|
| ^ -------------------- interpreted as generic arguments
|
|
|
|
| |
|
|
|
|
| not interpreted as comparison
|
2017-06-12 01:47:26 -05:00
|
|
|
|
|
2017-06-12 01:49:28 -05:00
|
|
|
help: if you want to compare the casted value then write:
|
2017-06-28 01:16:04 -05:00
|
|
|
|
|
2017-07-03 18:17:01 -05:00
|
|
|
17 | println!("{}{}", (a as usize) < long_name, long_name);
|
|
|
|
| ^^^^^^^^^^^^
|
|
|
|
|
|
|
|
error: `<` is interpreted as a start of generic arguments for `usize`, not a comparison
|
|
|
|
--> $DIR/issue-22644.rs:18:31
|
|
|
|
|
|
|
|
|
18 | println!("{}", a as usize < 4);
|
|
|
|
| ^ - interpreted as generic arguments
|
|
|
|
| |
|
|
|
|
| not interpreted as comparison
|
|
|
|
|
|
|
|
|
help: if you want to compare the casted value then write:
|
|
|
|
|
|
|
|
|
18 | println!("{}", (a as usize) < 4);
|
|
|
|
| ^^^^^^^^^^^^
|
|
|
|
|
|
|
|
error: `<` is interpreted as a start of generic arguments for `usize`, not a comparison
|
|
|
|
--> $DIR/issue-22644.rs:20:31
|
|
|
|
|
|
|
|
|
20 | println!("{}{}", a: usize < long_name, long_name);
|
|
|
|
| ^ -------------------- interpreted as generic arguments
|
|
|
|
| |
|
|
|
|
| not interpreted as comparison
|
|
|
|
|
|
|
|
|
help: if you want to compare the casted value then write:
|
|
|
|
|
|
|
|
|
20 | println!("{}{}", (a: usize) < long_name, long_name);
|
|
|
|
| ^^^^^^^^^^
|
|
|
|
|
|
|
|
error: `<` is interpreted as a start of generic arguments for `usize`, not a comparison
|
|
|
|
--> $DIR/issue-22644.rs:21:29
|
2017-07-05 18:39:06 -05:00
|
|
|
|
|
2017-07-03 18:17:01 -05:00
|
|
|
21 | println!("{}", a: usize < 4);
|
|
|
|
| ^ - interpreted as generic arguments
|
|
|
|
| |
|
|
|
|
| not interpreted as comparison
|
|
|
|
|
|
|
|
|
help: if you want to compare the casted value then write:
|
|
|
|
|
|
|
|
|
21 | println!("{}", (a: usize) < 4);
|
|
|
|
| ^^^^^^^^^^
|
2017-07-05 18:39:06 -05:00
|
|
|
|
|
|
|
error: `<` is interpreted as a start of generic arguments for `usize`, not a comparison
|
2017-07-03 18:17:01 -05:00
|
|
|
--> $DIR/issue-22644.rs:26:20
|
2017-07-05 18:39:06 -05:00
|
|
|
|
|
2017-07-03 18:17:01 -05:00
|
|
|
26 | <
|
|
|
|
| ^ not interpreted as comparison
|
|
|
|
27 | 4);
|
|
|
|
| - interpreted as generic arguments
|
2017-07-05 18:39:06 -05:00
|
|
|
|
|
|
|
|
help: if you want to compare the casted value then write:
|
|
|
|
|
|
2017-07-03 18:17:01 -05:00
|
|
|
23 | println!("{}", (a
|
|
|
|
24 | as
|
|
|
|
25 | usize)
|
|
|
|
|
|
|
|
|
|
|
|
|
error: `<` is interpreted as a start of generic arguments for `usize`, not a comparison
|
|
|
|
--> $DIR/issue-22644.rs:35:20
|
|
|
|
|
|
|
|
|
35 | <
|
|
|
|
| ^ not interpreted as comparison
|
|
|
|
36 | 5);
|
|
|
|
| - interpreted as generic arguments
|
|
|
|
|
|
|
|
|
help: if you want to compare the casted value then write:
|
|
|
|
|
|
|
|
|
28 | println!("{}", (a
|
|
|
|
29 |
|
|
|
|
30 |
|
|
|
|
31 | as
|
|
|
|
32 |
|
|
|
|
33 |
|
2017-07-05 18:39:06 -05:00
|
|
|
...
|
2017-06-12 01:47:26 -05:00
|
|
|
|
2017-07-03 18:17:01 -05:00
|
|
|
error: expected type, found `4`
|
|
|
|
--> $DIR/issue-22644.rs:38:28
|
|
|
|
|
|
|
|
|
38 | println!("{}", a: &mut 4);
|
|
|
|
| ^
|
2017-06-14 22:42:24 -05:00
|
|
|
|