fork/rust

git clone https://git.julia.blue/fork/rust

borsAuto merge of #103046 - JanBeh:PR_clarify_cmp_terminology, r=workingjubilee3bcad65fbf6

master
2.8 KiB86 linesraw
1error: `<` is interpreted as a start of generic arguments for `usize`, not a comparison
2  --> $DIR/issue-22644.rs:6:31
3   |
4LL |     println!("{}", a as usize < long_name);
5   |                               ^ --------- interpreted as generic arguments
6   |                               |
7   |                               not interpreted as comparison
8   |
9help: try comparing the cast value
10   |
11LL |     println!("{}", (a as usize) < long_name);
12   |                    +          +
13
14error: `<` is interpreted as a start of generic arguments for `usize`, not a comparison
15  --> $DIR/issue-22644.rs:7:33
16   |
17LL |     println!("{}{}", a as usize < long_name, long_name);
18   |                                 ^ -------------------- interpreted as generic arguments
19   |                                 |
20   |                                 not interpreted as comparison
21   |
22help: try comparing the cast value
23   |
24LL |     println!("{}{}", (a as usize) < long_name, long_name);
25   |                      +          +
26
27error: `<` is interpreted as a start of generic arguments for `usize`, not a comparison
28  --> $DIR/issue-22644.rs:9:31
29   |
30LL |     println!("{}", a as usize < 4);
31   |                               ^ - interpreted as generic arguments
32   |                               |
33   |                               not interpreted as comparison
34   |
35help: try comparing the cast value
36   |
37LL |     println!("{}", (a as usize) < 4);
38   |                    +          +
39
40error: `<` is interpreted as a start of generic arguments for `usize`, not a comparison
41  --> $DIR/issue-22644.rs:14:20
42   |
43LL |                    <
44   |                    ^ not interpreted as comparison
45LL |                    4);
46   |                    - interpreted as generic arguments
47   |
48help: try comparing the cast value
49   |
50LL ~     println!("{}", (a
51LL |                    as
52LL ~                    usize)
53   |
54
55error: `<` is interpreted as a start of generic arguments for `usize`, not a comparison
56  --> $DIR/issue-22644.rs:23:20
57   |
58LL |                    <
59   |                    ^ not interpreted as comparison
60LL |                    5);
61   |                    - interpreted as generic arguments
62   |
63help: try comparing the cast value
64   |
65LL ~     println!("{}", (a
66LL | 
67 ...
68LL | 
69LL ~                    usize)
70   |
71
72error: `<<` is interpreted as a start of generic arguments for `usize`, not a shift
73  --> $DIR/issue-22644.rs:26:31
74   |
75LL |     println!("{}", a as usize << long_name);
76   |                               ^^ --------- interpreted as generic arguments
77   |                               |
78   |                               not interpreted as shift
79   |
80help: try shifting the cast value
81   |
82LL |     println!("{}", (a as usize) << long_name);
83   |                    +          +
84
85error: aborting due to 6 previous errors
86