fork/rust
git clone https://git.julia.blue/fork/rust
3bcad65fbf6
master
1error: statement with no effect 2 --> $DIR/no_effect.rs:98:5 3 | 4LL | 0; 5 | ^^ 6 | 7 = note: `-D clippy::no-effect` implied by `-D warnings` 8 = help: to override `-D warnings` add `#[allow(clippy::no_effect)]` 9 10error: statement with no effect 11 --> $DIR/no_effect.rs:101:5 12 | 13LL | s2; 14 | ^^^ 15 16error: statement with no effect 17 --> $DIR/no_effect.rs:103:5 18 | 19LL | Unit; 20 | ^^^^^ 21 22error: statement with no effect 23 --> $DIR/no_effect.rs:105:5 24 | 25LL | Tuple(0); 26 | ^^^^^^^^^ 27 28error: statement with no effect 29 --> $DIR/no_effect.rs:107:5 30 | 31LL | Struct { field: 0 }; 32 | ^^^^^^^^^^^^^^^^^^^^ 33 34error: statement with no effect 35 --> $DIR/no_effect.rs:109:5 36 | 37LL | Struct { ..s }; 38 | ^^^^^^^^^^^^^^^ 39 40error: statement with no effect 41 --> $DIR/no_effect.rs:111:5 42 | 43LL | Union { a: 0 }; 44 | ^^^^^^^^^^^^^^^ 45 46error: statement with no effect 47 --> $DIR/no_effect.rs:113:5 48 | 49LL | Enum::Tuple(0); 50 | ^^^^^^^^^^^^^^^ 51 52error: statement with no effect 53 --> $DIR/no_effect.rs:115:5 54 | 55LL | Enum::Struct { field: 0 }; 56 | ^^^^^^^^^^^^^^^^^^^^^^^^^^ 57 58error: statement with no effect 59 --> $DIR/no_effect.rs:117:5 60 | 61LL | 5 + 6; 62 | ^^^^^^ 63 64error: statement with no effect 65 --> $DIR/no_effect.rs:119:5 66 | 67LL | *&42; 68 | ^^^^^ 69 70error: statement with no effect 71 --> $DIR/no_effect.rs:121:5 72 | 73LL | &6; 74 | ^^^ 75 76error: statement with no effect 77 --> $DIR/no_effect.rs:123:5 78 | 79LL | (5, 6, 7); 80 | ^^^^^^^^^^ 81 82error: statement with no effect 83 --> $DIR/no_effect.rs:125:5 84 | 85LL | ..; 86 | ^^^ 87 88error: statement with no effect 89 --> $DIR/no_effect.rs:127:5 90 | 91LL | 5..; 92 | ^^^^ 93 94error: statement with no effect 95 --> $DIR/no_effect.rs:129:5 96 | 97LL | ..5; 98 | ^^^^ 99 100error: statement with no effect 101 --> $DIR/no_effect.rs:131:5 102 | 103LL | 5..6; 104 | ^^^^^ 105 106error: statement with no effect 107 --> $DIR/no_effect.rs:133:5 108 | 109LL | 5..=6; 110 | ^^^^^^ 111 112error: statement with no effect 113 --> $DIR/no_effect.rs:135:5 114 | 115LL | [42, 55]; 116 | ^^^^^^^^^ 117 118error: statement with no effect 119 --> $DIR/no_effect.rs:137:5 120 | 121LL | [42, 55][1]; 122 | ^^^^^^^^^^^^ 123 124error: statement with no effect 125 --> $DIR/no_effect.rs:139:5 126 | 127LL | (42, 55).1; 128 | ^^^^^^^^^^^ 129 130error: statement with no effect 131 --> $DIR/no_effect.rs:141:5 132 | 133LL | [42; 55]; 134 | ^^^^^^^^^ 135 136error: statement with no effect 137 --> $DIR/no_effect.rs:143:5 138 | 139LL | [42; 55][13]; 140 | ^^^^^^^^^^^^^ 141 142error: statement with no effect 143 --> $DIR/no_effect.rs:146:5 144 | 145LL | || x += 5; 146 | ^^^^^^^^^^ 147 148error: statement with no effect 149 --> $DIR/no_effect.rs:149:5 150 | 151LL | FooString { s: s }; 152 | ^^^^^^^^^^^^^^^^^^^ 153 154error: binding to `_` prefixed variable with no side-effect 155 --> $DIR/no_effect.rs:151:5 156 | 157LL | let _unused = 1; 158 | ^^^^^^^^^^^^^^^^ 159 | 160 = note: `-D clippy::no-effect-underscore-binding` implied by `-D warnings` 161 = help: to override `-D warnings` add `#[allow(clippy::no_effect_underscore_binding)]` 162 163error: binding to `_` prefixed variable with no side-effect 164 --> $DIR/no_effect.rs:154:5 165 | 166LL | let _penguin = || println!("Some helpful closure"); 167 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 168 169error: binding to `_` prefixed variable with no side-effect 170 --> $DIR/no_effect.rs:156:5 171 | 172LL | let _duck = Struct { field: 0 }; 173 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 174 175error: binding to `_` prefixed variable with no side-effect 176 --> $DIR/no_effect.rs:158:5 177 | 178LL | let _cat = [2, 4, 6, 8][2]; 179 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ 180 181error: aborting due to 29 previous errors 182