@@ -2,66 +2,46 @@ error: `<` is interpreted as a start of generic arguments for `usize`, not a com
2
2
--> $DIR/issue-22644.rs:16:31
3
3
|
4
4
16 | println!("{}", a as usize < long_name);
5
- | ^ --------- interpreted as generic arguments
6
- | |
7
- | not interpreted as comparison
8
- |
9
- help: if you want to compare the casted value then write:
10
- |
11
- 16 | println!("{}", (a as usize) < long_name);
12
- | ^^^^^^^^^^^^
5
+ | ---------- ^ --------- interpreted as generic arguments
6
+ | | |
7
+ | | not interpreted as comparison
8
+ | help: try comparing the casted value: `(a as usize)`
13
9
14
10
error: `<` is interpreted as a start of generic arguments for `usize`, not a comparison
15
11
--> $DIR/issue-22644.rs:17:33
16
12
|
17
13
17 | println!("{}{}", a as usize < long_name, long_name);
18
- | ^ -------------------- interpreted as generic arguments
19
- | |
20
- | not interpreted as comparison
21
- |
22
- help: if you want to compare the casted value then write:
23
- |
24
- 17 | println!("{}{}", (a as usize) < long_name, long_name);
25
- | ^^^^^^^^^^^^
14
+ | ---------- ^ -------------------- interpreted as generic arguments
15
+ | | |
16
+ | | not interpreted as comparison
17
+ | help: try comparing the casted value: `(a as usize)`
26
18
27
19
error: `<` is interpreted as a start of generic arguments for `usize`, not a comparison
28
20
--> $DIR/issue-22644.rs:18:31
29
21
|
30
22
18 | println!("{}", a as usize < 4);
31
- | ^ - interpreted as generic arguments
32
- | |
33
- | not interpreted as comparison
34
- |
35
- help: if you want to compare the casted value then write:
36
- |
37
- 18 | println!("{}", (a as usize) < 4);
38
- | ^^^^^^^^^^^^
23
+ | ---------- ^ - interpreted as generic arguments
24
+ | | |
25
+ | | not interpreted as comparison
26
+ | help: try comparing the casted value: `(a as usize)`
39
27
40
28
error: `<` is interpreted as a start of generic arguments for `usize`, not a comparison
41
29
--> $DIR/issue-22644.rs:20:31
42
30
|
43
31
20 | println!("{}{}", a: usize < long_name, long_name);
44
- | ^ -------------------- interpreted as generic arguments
45
- | |
46
- | not interpreted as comparison
47
- |
48
- help: if you want to compare the casted value then write:
49
- |
50
- 20 | println!("{}{}", (a: usize) < long_name, long_name);
51
- | ^^^^^^^^^^
32
+ | -------- ^ -------------------- interpreted as generic arguments
33
+ | | |
34
+ | | not interpreted as comparison
35
+ | help: try comparing the casted value: `(a: usize)`
52
36
53
37
error: `<` is interpreted as a start of generic arguments for `usize`, not a comparison
54
38
--> $DIR/issue-22644.rs:21:29
55
39
|
56
40
21 | println!("{}", a: usize < 4);
57
- | ^ - interpreted as generic arguments
58
- | |
59
- | not interpreted as comparison
60
- |
61
- help: if you want to compare the casted value then write:
62
- |
63
- 21 | println!("{}", (a: usize) < 4);
64
- | ^^^^^^^^^^
41
+ | -------- ^ - interpreted as generic arguments
42
+ | | |
43
+ | | not interpreted as comparison
44
+ | help: try comparing the casted value: `(a: usize)`
65
45
66
46
error: `<` is interpreted as a start of generic arguments for `usize`, not a comparison
67
47
--> $DIR/issue-22644.rs:26:20
@@ -71,7 +51,7 @@ error: `<` is interpreted as a start of generic arguments for `usize`, not a com
71
51
27 | 4);
72
52
| - interpreted as generic arguments
73
53
|
74
- help: if you want to compare the casted value then write:
54
+ help: try comparing the casted value
75
55
|
76
56
23 | println!("{}", (a
77
57
24 | as
@@ -86,7 +66,7 @@ error: `<` is interpreted as a start of generic arguments for `usize`, not a com
86
66
36 | 5);
87
67
| - interpreted as generic arguments
88
68
|
89
- help: if you want to compare the casted value then write:
69
+ help: try comparing the casted value
90
70
|
91
71
28 | println!("{}", (a
92
72
29 |
0 commit comments