fork/rust
git clone https://git.julia.blue/fork/rust
49cae55760d
1.44.0
1error: `<` is interpreted as a start of generic arguments for `usize`, not a comparison 2 --> $DIR/issue-22644.rs:8:31 3 | 4LL | 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 10error: `<` is interpreted as a start of generic arguments for `usize`, not a comparison 11 --> $DIR/issue-22644.rs:9:33 12 | 13LL | 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 19error: `<` is interpreted as a start of generic arguments for `usize`, not a comparison 20 --> $DIR/issue-22644.rs:11:31 21 | 22LL | 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 28error: `<` is interpreted as a start of generic arguments for `usize`, not a comparison 29 --> $DIR/issue-22644.rs:13:31 30 | 31LL | 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 37error: `<` is interpreted as a start of generic arguments for `usize`, not a comparison 38 --> $DIR/issue-22644.rs:15:29 39 | 40LL | 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 46error: `<` is interpreted as a start of generic arguments for `usize`, not a comparison 47 --> $DIR/issue-22644.rs:20:20 48 | 49LL | < 50 | ^ not interpreted as comparison 51LL | 4); 52 | - interpreted as generic arguments 53 | 54help: try comparing the cast value 55 | 56LL | println!("{}", (a 57LL | as 58LL | usize) 59 | 60 61error: `<` is interpreted as a start of generic arguments for `usize`, not a comparison 62 --> $DIR/issue-22644.rs:29:20 63 | 64LL | < 65 | ^ not interpreted as comparison 66LL | 5); 67 | - interpreted as generic arguments 68 | 69help: try comparing the cast value 70 | 71LL | println!("{}", (a 72LL | 73LL | 74LL | as 75LL | 76LL | 77 ... 78 79error: `<` is interpreted as a start of generic arguments for `usize`, not a shift 80 --> $DIR/issue-22644.rs:32:31 81 | 82LL | println!("{}", a as usize << long_name); 83 | ---------- ^^ --------- interpreted as generic arguments 84 | | | 85 | | not interpreted as shift 86 | help: try shifting the cast value: `(a as usize)` 87 88error: expected type, found `4` 89 --> $DIR/issue-22644.rs:34:28 90 | 91LL | println!("{}", a: &mut 4); 92 | - ^ expected type 93 | | 94 | tried to parse a type due to this type ascription 95 | 96 = note: `#![feature(type_ascription)]` lets you annotate an expression with a type: `<expr>: <type>` 97 = note: see issue #23416 <https://github.com/rust-lang/rust/issues/23416> for more information 98 99error: aborting due to 9 previous errors 100