]> git.lizzy.rs Git - rust.git/blob - src/test/ui/issues/issue-22644.stderr
Remove GlobalArenas and use Arena instead
[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    |                    help: try comparing the cast 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:9:33
12    |
13 LL |     println!("{}{}", a as usize < long_name, long_name);
14    |                      ---------- ^ -------------------- interpreted as generic arguments
15    |                      |          |
16    |                      |          not interpreted as comparison
17    |                      help: try comparing the cast 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:11:31
21    |
22 LL |     println!("{}", a as usize < 4);
23    |                    ---------- ^ - interpreted as generic arguments
24    |                    |          |
25    |                    |          not interpreted as comparison
26    |                    help: try comparing the cast 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:13:31
30    |
31 LL |     println!("{}{}", a: usize < long_name, long_name);
32    |                      -------- ^ -------------------- interpreted as generic arguments
33    |                      |        |
34    |                      |        not interpreted as comparison
35    |                      help: try comparing the cast value: `(a: usize)`
36
37 error: `<` is interpreted as a start of generic arguments for `usize`, not a comparison
38   --> $DIR/issue-22644.rs:15:29
39    |
40 LL |     println!("{}", a: usize < 4);
41    |                    -------- ^ - interpreted as generic arguments
42    |                    |        |
43    |                    |        not interpreted as comparison
44    |                    help: try comparing the cast value: `(a: usize)`
45
46 error: `<` is interpreted as a start of generic arguments for `usize`, not a comparison
47   --> $DIR/issue-22644.rs:20:20
48    |
49 LL |                    <
50    |                    ^ not interpreted as comparison
51 LL |                    4);
52    |                    - interpreted as generic arguments
53 help: try comparing the cast value
54    |
55 LL |     println!("{}", (a
56 LL |                    as
57 LL |                    usize)
58    |
59
60 error: `<` is interpreted as a start of generic arguments for `usize`, not a comparison
61   --> $DIR/issue-22644.rs:29:20
62    |
63 LL |                    <
64    |                    ^ not interpreted as comparison
65 LL |                    5);
66    |                    - interpreted as generic arguments
67 help: try comparing the cast value
68    |
69 LL |     println!("{}", (a
70 LL | 
71 LL | 
72 LL |                    as
73 LL | 
74 LL | 
75  ...
76
77 error: `<` is interpreted as a start of generic arguments for `usize`, not a shift
78   --> $DIR/issue-22644.rs:32:31
79    |
80 LL |     println!("{}", a as usize << long_name);
81    |                    ---------- ^^ --------- interpreted as generic arguments
82    |                    |          |
83    |                    |          not interpreted as shift
84    |                    help: try shifting the cast value: `(a as usize)`
85
86 error: expected type, found `4`
87   --> $DIR/issue-22644.rs:34:28
88    |
89 LL |     println!("{}", a: &mut 4);
90    |                            ^ expecting a type here because of type ascription
91    |
92    = note: type ascription is a nightly-only feature that lets you annotate an expression with a type: `<expr>: <type>`
93 note: this expression expects an ascribed type after the colon
94   --> $DIR/issue-22644.rs:34:20
95    |
96 LL |     println!("{}", a: &mut 4);
97    |                    ^
98    = help: this might be indicative of a syntax error elsewhere
99
100 error: aborting due to 9 previous errors
101