1 error: `<` is interpreted as a start of generic arguments for `usize`, not a comparison
2 --> $DIR/issue-22644.rs:8:31
4 LL | println!("{}", a as usize < long_name);
5 | ^ --------- interpreted as generic arguments
7 | not interpreted as comparison
9 help: try comparing the cast value
11 LL | println!("{}", (a as usize) < long_name);
14 error: `<` is interpreted as a start of generic arguments for `usize`, not a comparison
15 --> $DIR/issue-22644.rs:9:33
17 LL | println!("{}{}", a as usize < long_name, long_name);
18 | ^ -------------------- interpreted as generic arguments
20 | not interpreted as comparison
22 help: try comparing the cast value
24 LL | println!("{}{}", (a as usize) < long_name, long_name);
27 error: `<` is interpreted as a start of generic arguments for `usize`, not a comparison
28 --> $DIR/issue-22644.rs:11:31
30 LL | println!("{}", a as usize < 4);
31 | ^ - interpreted as generic arguments
33 | not interpreted as comparison
35 help: try comparing the cast value
37 LL | println!("{}", (a as usize) < 4);
40 error: `<` is interpreted as a start of generic arguments for `usize`, not a comparison
41 --> $DIR/issue-22644.rs:13:31
43 LL | println!("{}{}", a: usize < long_name, long_name);
44 | ^ -------------------- interpreted as generic arguments
46 | not interpreted as comparison
48 help: try comparing the cast value
50 LL | println!("{}{}", (a: usize) < long_name, long_name);
53 error: `<` is interpreted as a start of generic arguments for `usize`, not a comparison
54 --> $DIR/issue-22644.rs:15:29
56 LL | println!("{}", a: usize < 4);
57 | ^ - interpreted as generic arguments
59 | not interpreted as comparison
61 help: try comparing the cast value
63 LL | println!("{}", (a: usize) < 4);
66 error: `<` is interpreted as a start of generic arguments for `usize`, not a comparison
67 --> $DIR/issue-22644.rs:20:20
70 | ^ not interpreted as comparison
72 | - interpreted as generic arguments
74 help: try comparing the cast value
76 LL ~ println!("{}", (a
81 error: `<` is interpreted as a start of generic arguments for `usize`, not a comparison
82 --> $DIR/issue-22644.rs:29:20
85 | ^ not interpreted as comparison
87 | - interpreted as generic arguments
89 help: try comparing the cast value
91 LL ~ println!("{}", (a
98 error: `<<` is interpreted as a start of generic arguments for `usize`, not a shift
99 --> $DIR/issue-22644.rs:32:31
101 LL | println!("{}", a as usize << long_name);
102 | ^^ --------- interpreted as generic arguments
104 | not interpreted as shift
106 help: try shifting the cast value
108 LL | println!("{}", (a as usize) << long_name);
111 error: expected type, found `4`
112 --> $DIR/issue-22644.rs:34:28
114 LL | println!("{}", a: &mut 4);
117 | tried to parse a type due to this type ascription
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
122 error: aborting due to 9 previous errors