]> git.lizzy.rs Git - rust.git/blob - src/test/ui/issue-22644.stderr
Auto merge of #44060 - taleks:issue-43205, r=arielb1
[rust.git] / src / test / ui / issue-22644.stderr
1 error: `<` is interpreted as a start of generic arguments for `usize`, not a comparison
2   --> $DIR/issue-22644.rs:16:31
3    |
4 16 |     println!("{}", a as usize < long_name);
5    |                    ---------- ^ --------- interpreted as generic arguments
6    |                    |          |
7    |                    |          not interpreted as comparison
8    |                    help: try comparing the casted value: `(a as usize)`
9
10 error: `<` is interpreted as a start of generic arguments for `usize`, not a comparison
11   --> $DIR/issue-22644.rs:17:33
12    |
13 17 |     println!("{}{}", a as usize < long_name, long_name);
14    |                      ---------- ^ -------------------- interpreted as generic arguments
15    |                      |          |
16    |                      |          not interpreted as comparison
17    |                      help: try comparing the casted value: `(a as usize)`
18
19 error: `<` is interpreted as a start of generic arguments for `usize`, not a comparison
20   --> $DIR/issue-22644.rs:18:31
21    |
22 18 |     println!("{}", a as usize < 4);
23    |                    ---------- ^ - interpreted as generic arguments
24    |                    |          |
25    |                    |          not interpreted as comparison
26    |                    help: try comparing the casted value: `(a as usize)`
27
28 error: `<` is interpreted as a start of generic arguments for `usize`, not a comparison
29   --> $DIR/issue-22644.rs:20:31
30    |
31 20 |     println!("{}{}", a: usize < long_name, long_name);
32    |                      -------- ^ -------------------- interpreted as generic arguments
33    |                      |        |
34    |                      |        not interpreted as comparison
35    |                      help: try comparing the casted value: `(a: usize)`
36
37 error: `<` is interpreted as a start of generic arguments for `usize`, not a comparison
38   --> $DIR/issue-22644.rs:21:29
39    |
40 21 |     println!("{}", a: usize < 4);
41    |                    -------- ^ - interpreted as generic arguments
42    |                    |        |
43    |                    |        not interpreted as comparison
44    |                    help: try comparing the casted value: `(a: usize)`
45
46 error: `<` is interpreted as a start of generic arguments for `usize`, not a comparison
47   --> $DIR/issue-22644.rs:26:20
48    |
49 26 |                    <
50    |                    ^ not interpreted as comparison
51 27 |                    4);
52    |                    - interpreted as generic arguments
53    |
54 help: try comparing the casted value
55    |
56 23 |     println!("{}", (a
57 24 |                    as
58 25 |                    usize)
59    |
60
61 error: `<` is interpreted as a start of generic arguments for `usize`, not a comparison
62   --> $DIR/issue-22644.rs:35:20
63    |
64 35 |                    <
65    |                    ^ not interpreted as comparison
66 36 |                    5);
67    |                    - interpreted as generic arguments
68    |
69 help: try comparing the casted value
70    |
71 28 |     println!("{}", (a
72 29 | 
73 30 | 
74 31 |                    as
75 32 | 
76 33 | 
77  ...
78
79 error: expected type, found `4`
80   --> $DIR/issue-22644.rs:38:28
81    |
82 38 |     println!("{}", a: &mut 4);
83    |                            ^ expecting a type here because of type ascription
84