fork/rust
git clone https://git.julia.blue/fork/rust
3bcad65fbf6
master
1error: integer type suffix should not be separated by an underscore 2 --> $DIR/literals.rs:13:15 3 | 4LL | let ok4 = 0xab_cd_i32; 5 | ^^^^^^^^^^^ help: remove the underscore: `0xab_cdi32` 6 | 7 = note: `-D clippy::separated-literal-suffix` implied by `-D warnings` 8 = help: to override `-D warnings` add `#[allow(clippy::separated_literal_suffix)]` 9 10error: integer type suffix should not be separated by an underscore 11 --> $DIR/literals.rs:16:15 12 | 13LL | let ok5 = 0xAB_CD_u32; 14 | ^^^^^^^^^^^ help: remove the underscore: `0xAB_CDu32` 15 16error: integer type suffix should not be separated by an underscore 17 --> $DIR/literals.rs:18:15 18 | 19LL | let ok5 = 0xAB_CD_isize; 20 | ^^^^^^^^^^^^^ help: remove the underscore: `0xAB_CDisize` 21 22error: inconsistent casing in hexadecimal literal 23 --> $DIR/literals.rs:20:17 24 | 25LL | let fail1 = 0xabCD; 26 | ^^^^^^ 27 | 28 = note: `-D clippy::mixed-case-hex-literals` implied by `-D warnings` 29 = help: to override `-D warnings` add `#[allow(clippy::mixed_case_hex_literals)]` 30 31error: integer type suffix should not be separated by an underscore 32 --> $DIR/literals.rs:23:17 33 | 34LL | let fail2 = 0xabCD_u32; 35 | ^^^^^^^^^^ help: remove the underscore: `0xabCDu32` 36 37error: inconsistent casing in hexadecimal literal 38 --> $DIR/literals.rs:23:17 39 | 40LL | let fail2 = 0xabCD_u32; 41 | ^^^^^^^^^^ 42 43error: integer type suffix should not be separated by an underscore 44 --> $DIR/literals.rs:26:17 45 | 46LL | let fail2 = 0xabCD_isize; 47 | ^^^^^^^^^^^^ help: remove the underscore: `0xabCDisize` 48 49error: inconsistent casing in hexadecimal literal 50 --> $DIR/literals.rs:26:17 51 | 52LL | let fail2 = 0xabCD_isize; 53 | ^^^^^^^^^^^^ 54 55error: integer type suffix should be separated by an underscore 56 --> $DIR/literals.rs:29:27 57 | 58LL | let fail_multi_zero = 000_123usize; 59 | ^^^^^^^^^^^^ help: add an underscore: `000_123_usize` 60 | 61 = note: `-D clippy::unseparated-literal-suffix` implied by `-D warnings` 62 = help: to override `-D warnings` add `#[allow(clippy::unseparated_literal_suffix)]` 63 64error: this is a decimal constant 65 --> $DIR/literals.rs:29:27 66 | 67LL | let fail_multi_zero = 000_123usize; 68 | ^^^^^^^^^^^^ 69 | 70 = note: `-D clippy::zero-prefixed-literal` implied by `-D warnings` 71 = help: to override `-D warnings` add `#[allow(clippy::zero_prefixed_literal)]` 72help: if you mean to use a decimal constant, remove the `0` to avoid confusion 73 | 74LL | let fail_multi_zero = 123usize; 75 | ~~~~~~~~ 76help: if you mean to use an octal constant, use `0o` 77 | 78LL | let fail_multi_zero = 0o123usize; 79 | ~~~~~~~~~~ 80 81error: integer type suffix should not be separated by an underscore 82 --> $DIR/literals.rs:36:16 83 | 84LL | let ok10 = 0_i64; 85 | ^^^^^ help: remove the underscore: `0i64` 86 87error: this is a decimal constant 88 --> $DIR/literals.rs:38:17 89 | 90LL | let fail8 = 0123; 91 | ^^^^ 92 | 93help: if you mean to use a decimal constant, remove the `0` to avoid confusion 94 | 95LL | let fail8 = 123; 96 | ~~~ 97help: if you mean to use an octal constant, use `0o` 98 | 99LL | let fail8 = 0o123; 100 | ~~~~~ 101 102error: integer type suffix should not be separated by an underscore 103 --> $DIR/literals.rs:48:16 104 | 105LL | let ok17 = 0x123_4567_8901_usize; 106 | ^^^^^^^^^^^^^^^^^^^^^ help: remove the underscore: `0x123_4567_8901usize` 107 108error: digits grouped inconsistently by underscores 109 --> $DIR/literals.rs:52:18 110 | 111LL | let fail19 = 12_3456_21; 112 | ^^^^^^^^^^ help: consider: `12_345_621` 113 | 114 = note: `-D clippy::inconsistent-digit-grouping` implied by `-D warnings` 115 = help: to override `-D warnings` add `#[allow(clippy::inconsistent_digit_grouping)]` 116 117error: digits grouped inconsistently by underscores 118 --> $DIR/literals.rs:55:18 119 | 120LL | let fail22 = 3__4___23; 121 | ^^^^^^^^^ help: consider: `3_423` 122 123error: digits grouped inconsistently by underscores 124 --> $DIR/literals.rs:57:18 125 | 126LL | let fail23 = 3__16___23; 127 | ^^^^^^^^^^ help: consider: `31_623` 128 129error: digits of hex, binary or octal literal not in groups of equal size 130 --> $DIR/literals.rs:60:18 131 | 132LL | let fail24 = 0xAB_ABC_AB; 133 | ^^^^^^^^^^^ help: consider: `0x0ABA_BCAB` 134 | 135 = note: `-D clippy::unusual-byte-groupings` implied by `-D warnings` 136 = help: to override `-D warnings` add `#[allow(clippy::unusual_byte_groupings)]` 137 138error: this is a decimal constant 139 --> $DIR/literals.rs:70:13 140 | 141LL | let _ = 08; 142 | ^^ 143 | 144help: if you mean to use a decimal constant, remove the `0` to avoid confusion 145 | 146LL | let _ = 8; 147 | ~ 148 149error: this is a decimal constant 150 --> $DIR/literals.rs:72:13 151 | 152LL | let _ = 09; 153 | ^^ 154 | 155help: if you mean to use a decimal constant, remove the `0` to avoid confusion 156 | 157LL | let _ = 9; 158 | ~ 159 160error: this is a decimal constant 161 --> $DIR/literals.rs:74:13 162 | 163LL | let _ = 089; 164 | ^^^ 165 | 166help: if you mean to use a decimal constant, remove the `0` to avoid confusion 167 | 168LL | let _ = 89; 169 | ~~ 170 171error: aborting due to 20 previous errors 172