fork/rust
git clone https://git.julia.blue/fork/rust
4560ea788cb
1.39.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 53help: try comparing the cast value 54 | 55LL | println!("{}", (a 56LL | as 57LL | usize) 58 | 59 60error: `<` is interpreted as a start of generic arguments for `usize`, not a comparison 61 --> $DIR/issue-22644.rs:29:20 62 | 63LL | < 64 | ^ not interpreted as comparison 65LL | 5); 66 | - interpreted as generic arguments 67help: try comparing the cast value 68 | 69LL | println!("{}", (a 70LL | 71LL | 72LL | as 73LL | 74LL | 75 ... 76 77error: `<` is interpreted as a start of generic arguments for `usize`, not a shift 78 --> $DIR/issue-22644.rs:32:31 79 | 80LL | 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 86error: expected type, found `4` 87 --> $DIR/issue-22644.rs:34:28 88 | 89LL | println!("{}", a: &mut 4); 90 | - ^ expected type 91 | | 92 | tried to parse a type due to this type ascription 93 | 94 = note: `#![feature(type_ascription)]` lets you annotate an expression with a type: `<expr>: <type>` 95 = note: for more information, see https://github.com/rust-lang/rust/issues/23416 96 97error: aborting due to 9 previous errors 98