]> git.proxmox.com Git - rustc.git/blob - tests/ui/issues/issue-22644.stderr
New upstream version 1.68.2+dfsg1
[rustc.git] / tests / 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 ...
94 LL |
95 LL ~ usize)
96 |
97
98 error: `<<` is interpreted as a start of generic arguments for `usize`, not a shift
99 --> $DIR/issue-22644.rs:32:31
100 |
101 LL | println!("{}", a as usize << long_name);
102 | ^^ --------- interpreted as generic arguments
103 | |
104 | not interpreted as shift
105 |
106 help: try shifting the cast value
107 |
108 LL | println!("{}", (a as usize) << long_name);
109 | + +
110
111 error: expected type, found `4`
112 --> $DIR/issue-22644.rs:34:28
113 |
114 LL | println!("{}", a: &mut 4);
115 | - ^ expected type
116 | |
117 | tried to parse a type due to this type ascription
118 |
119 = note: `#![feature(type_ascription)]` lets you annotate an expression with a type: `<expr>: <type>`
120 = note: see issue #23416 <https://github.com/rust-lang/rust/issues/23416> for more information
121
122 error: aborting due to 9 previous errors
123