]> git.lizzy.rs Git - rust.git/blob - src/test/ui/issues/issue-22644.stderr
Merge commit '97e504549371d7640cf011d266e3c17394fdddac' into sync_cg_clif-2021-12-20
[rust.git] / src / test / ui / issues / issue-22644.stderr
1 error: `<` is interpreted as a start of generic arguments for `usize`, not a comparison
2   --> $DIR/issue-22644.rs:8:31
3    |
4 LL |     println!("{}", a as usize < long_name);
5    |                               ^ --------- interpreted as generic arguments
6    |                               |
7    |                               not interpreted as comparison
8    |
9 help: try comparing the cast value
10    |
11 LL |     println!("{}", (a as usize) < long_name);
12    |                    +          +
13
14 error: `<` is interpreted as a start of generic arguments for `usize`, not a comparison
15   --> $DIR/issue-22644.rs:9:33
16    |
17 LL |     println!("{}{}", a as usize < long_name, long_name);
18    |                                 ^ -------------------- interpreted as generic arguments
19    |                                 |
20    |                                 not interpreted as comparison
21    |
22 help: try comparing the cast value
23    |
24 LL |     println!("{}{}", (a as usize) < long_name, long_name);
25    |                      +          +
26
27 error: `<` is interpreted as a start of generic arguments for `usize`, not a comparison
28   --> $DIR/issue-22644.rs:11:31
29    |
30 LL |     println!("{}", a as usize < 4);
31    |                               ^ - interpreted as generic arguments
32    |                               |
33    |                               not interpreted as comparison
34    |
35 help: try comparing the cast value
36    |
37 LL |     println!("{}", (a as usize) < 4);
38    |                    +          +
39
40 error: `<` is interpreted as a start of generic arguments for `usize`, not a comparison
41   --> $DIR/issue-22644.rs:13:31
42    |
43 LL |     println!("{}{}", a: usize < long_name, long_name);
44    |                               ^ -------------------- interpreted as generic arguments
45    |                               |
46    |                               not interpreted as comparison
47    |
48 help: try comparing the cast value
49    |
50 LL |     println!("{}{}", (a: usize) < long_name, long_name);
51    |                      +        +
52
53 error: `<` is interpreted as a start of generic arguments for `usize`, not a comparison
54   --> $DIR/issue-22644.rs:15:29
55    |
56 LL |     println!("{}", a: usize < 4);
57    |                             ^ - interpreted as generic arguments
58    |                             |
59    |                             not interpreted as comparison
60    |
61 help: try comparing the cast value
62    |
63 LL |     println!("{}", (a: usize) < 4);
64    |                    +        +
65
66 error: `<` is interpreted as a start of generic arguments for `usize`, not a comparison
67   --> $DIR/issue-22644.rs:20:20
68    |
69 LL |                    <
70    |                    ^ not interpreted as comparison
71 LL |                    4);
72    |                    - interpreted as generic arguments
73    |
74 help: try comparing the cast value
75    |
76 LL ~     println!("{}", (a
77 LL |                    as
78 LL ~                    usize)
79    |
80
81 error: `<` is interpreted as a start of generic arguments for `usize`, not a comparison
82   --> $DIR/issue-22644.rs:29:20
83    |
84 LL |                    <
85    |                    ^ not interpreted as comparison
86 LL |                    5);
87    |                    - interpreted as generic arguments
88    |
89 help: try comparing the cast value
90    |
91 LL ~     println!("{}", (a
92 LL | 
93 LL | 
94 LL |                    as
95 LL | 
96 LL | 
97  ...
98
99 error: `<` is interpreted as a start of generic arguments for `usize`, not a shift
100   --> $DIR/issue-22644.rs:32:31
101    |
102 LL |     println!("{}", a as usize << long_name);
103    |                               ^^ --------- interpreted as generic arguments
104    |                               |
105    |                               not interpreted as shift
106    |
107 help: try shifting the cast value
108    |
109 LL |     println!("{}", (a as usize) << long_name);
110    |                    +          +
111
112 error: expected type, found `4`
113   --> $DIR/issue-22644.rs:34:28
114    |
115 LL |     println!("{}", a: &mut 4);
116    |                     -      ^ expected type
117    |                     |
118    |                     tried to parse a type due to this type ascription
119    |
120    = note: `#![feature(type_ascription)]` lets you annotate an expression with a type: `<expr>: <type>`
121    = note: see issue #23416 <https://github.com/rust-lang/rust/issues/23416> for more information
122
123 error: aborting due to 9 previous errors
124