]> git.proxmox.com Git - rustc.git/blame - src/test/ui/issue-22644.stderr
New upstream version 1.23.0+dfsg1
[rustc.git] / src / test / ui / issue-22644.stderr
CommitLineData
041b39d2
XL
1error: `<` is interpreted as a start of generic arguments for `usize`, not a comparison
2 --> $DIR/issue-22644.rs:16:31
3 |
416 | println!("{}", a as usize < long_name);
3b2f2976
XL
5 | ---------- ^ --------- interpreted as generic arguments
6 | | |
7 | | not interpreted as comparison
8 | help: try comparing the casted value: `(a as usize)`
041b39d2
XL
9
10error: `<` is interpreted as a start of generic arguments for `usize`, not a comparison
11 --> $DIR/issue-22644.rs:17:33
12 |
1317 | println!("{}{}", a as usize < long_name, long_name);
3b2f2976
XL
14 | ---------- ^ -------------------- interpreted as generic arguments
15 | | |
16 | | not interpreted as comparison
17 | help: try comparing the casted value: `(a as usize)`
041b39d2
XL
18
19error: `<` is interpreted as a start of generic arguments for `usize`, not a comparison
20 --> $DIR/issue-22644.rs:18:31
21 |
2218 | println!("{}", a as usize < 4);
3b2f2976
XL
23 | ---------- ^ - interpreted as generic arguments
24 | | |
25 | | not interpreted as comparison
26 | help: try comparing the casted value: `(a as usize)`
041b39d2
XL
27
28error: `<` is interpreted as a start of generic arguments for `usize`, not a comparison
29 --> $DIR/issue-22644.rs:20:31
30 |
3120 | println!("{}{}", a: usize < long_name, long_name);
3b2f2976
XL
32 | -------- ^ -------------------- interpreted as generic arguments
33 | | |
34 | | not interpreted as comparison
35 | help: try comparing the casted value: `(a: usize)`
041b39d2
XL
36
37error: `<` is interpreted as a start of generic arguments for `usize`, not a comparison
38 --> $DIR/issue-22644.rs:21:29
39 |
4021 | println!("{}", a: usize < 4);
3b2f2976
XL
41 | -------- ^ - interpreted as generic arguments
42 | | |
43 | | not interpreted as comparison
44 | help: try comparing the casted value: `(a: usize)`
041b39d2
XL
45
46error: `<` is interpreted as a start of generic arguments for `usize`, not a comparison
47 --> $DIR/issue-22644.rs:26:20
48 |
4926 | <
50 | ^ not interpreted as comparison
5127 | 4);
52 | - interpreted as generic arguments
3b2f2976 53help: try comparing the casted value
041b39d2
XL
54 |
5523 | println!("{}", (a
5624 | as
5725 | usize)
58 |
59
60error: `<` is interpreted as a start of generic arguments for `usize`, not a comparison
61 --> $DIR/issue-22644.rs:35:20
62 |
6335 | <
64 | ^ not interpreted as comparison
6536 | 5);
66 | - interpreted as generic arguments
3b2f2976 67help: try comparing the casted value
041b39d2
XL
68 |
6928 | println!("{}", (a
7029 |
7130 |
7231 | as
7332 |
7433 |
75 ...
76
abe05a73
XL
77error: `<` is interpreted as a start of generic arguments for `usize`, not a shift
78 --> $DIR/issue-22644.rs:38:31
79 |
8038 | println!("{}", a as usize << long_name);
81 | ---------- ^^ --------- interpreted as generic arguments
82 | | |
83 | | not interpreted as shift
84 | help: try shifting the casted value: `(a as usize)`
85
041b39d2 86error: expected type, found `4`
abe05a73 87 --> $DIR/issue-22644.rs:40:28
041b39d2 88 |
abe05a73 8940 | println!("{}", a: &mut 4);
3b2f2976 90 | ^ expecting a type here because of type ascription
041b39d2 91