rust/tests/ui/arithmetic_side_effects.stderr

659 lines
20 KiB
Plaintext
Raw Normal View History

error: arithmetic operation that can potentially result in unexpected side-effects
2023-02-12 20:34:07 +00:00
--> $DIR/arithmetic_side_effects.rs:286:5
2022-09-07 13:00:45 +00:00
|
LL | _n += 1;
| ^^^^^^^
|
= note: `-D clippy::arithmetic-side-effects` implied by `-D warnings`
2022-09-07 13:00:45 +00:00
error: arithmetic operation that can potentially result in unexpected side-effects
2023-02-12 20:34:07 +00:00
--> $DIR/arithmetic_side_effects.rs:287:5
|
LL | _n += &1;
| ^^^^^^^^
error: arithmetic operation that can potentially result in unexpected side-effects
2023-02-12 20:34:07 +00:00
--> $DIR/arithmetic_side_effects.rs:288:5
2022-09-07 13:00:45 +00:00
|
LL | _n -= 1;
| ^^^^^^^
2022-09-07 13:00:45 +00:00
error: arithmetic operation that can potentially result in unexpected side-effects
2023-02-12 20:34:07 +00:00
--> $DIR/arithmetic_side_effects.rs:289:5
|
LL | _n -= &1;
| ^^^^^^^^
error: arithmetic operation that can potentially result in unexpected side-effects
2023-02-12 20:34:07 +00:00
--> $DIR/arithmetic_side_effects.rs:290:5
2022-09-07 13:00:45 +00:00
|
LL | _n /= 0;
| ^^^^^^^
2022-09-07 13:00:45 +00:00
error: arithmetic operation that can potentially result in unexpected side-effects
2023-02-12 20:34:07 +00:00
--> $DIR/arithmetic_side_effects.rs:291:5
|
LL | _n /= &0;
| ^^^^^^^^
error: arithmetic operation that can potentially result in unexpected side-effects
2023-02-12 20:34:07 +00:00
--> $DIR/arithmetic_side_effects.rs:292:5
|
LL | _n %= 0;
| ^^^^^^^
error: arithmetic operation that can potentially result in unexpected side-effects
2023-02-12 20:34:07 +00:00
--> $DIR/arithmetic_side_effects.rs:293:5
|
LL | _n %= &0;
| ^^^^^^^^
error: arithmetic operation that can potentially result in unexpected side-effects
2023-02-12 20:34:07 +00:00
--> $DIR/arithmetic_side_effects.rs:294:5
|
LL | _n *= 2;
| ^^^^^^^
error: arithmetic operation that can potentially result in unexpected side-effects
2023-02-12 20:34:07 +00:00
--> $DIR/arithmetic_side_effects.rs:295:5
|
LL | _n *= &2;
| ^^^^^^^^
error: arithmetic operation that can potentially result in unexpected side-effects
2023-02-12 20:34:07 +00:00
--> $DIR/arithmetic_side_effects.rs:296:5
|
LL | _n += -1;
| ^^^^^^^^
error: arithmetic operation that can potentially result in unexpected side-effects
2023-02-12 20:34:07 +00:00
--> $DIR/arithmetic_side_effects.rs:297:5
|
LL | _n += &-1;
| ^^^^^^^^^
error: arithmetic operation that can potentially result in unexpected side-effects
2023-02-12 20:34:07 +00:00
--> $DIR/arithmetic_side_effects.rs:298:5
|
LL | _n -= -1;
| ^^^^^^^^
error: arithmetic operation that can potentially result in unexpected side-effects
2023-02-12 20:34:07 +00:00
--> $DIR/arithmetic_side_effects.rs:299:5
|
LL | _n -= &-1;
| ^^^^^^^^^
error: arithmetic operation that can potentially result in unexpected side-effects
2023-02-12 20:34:07 +00:00
--> $DIR/arithmetic_side_effects.rs:300:5
|
LL | _n /= -0;
| ^^^^^^^^
error: arithmetic operation that can potentially result in unexpected side-effects
2023-02-12 20:34:07 +00:00
--> $DIR/arithmetic_side_effects.rs:301:5
|
LL | _n /= &-0;
| ^^^^^^^^^
error: arithmetic operation that can potentially result in unexpected side-effects
2023-02-12 20:34:07 +00:00
--> $DIR/arithmetic_side_effects.rs:302:5
|
LL | _n %= -0;
| ^^^^^^^^
error: arithmetic operation that can potentially result in unexpected side-effects
2023-02-12 20:34:07 +00:00
--> $DIR/arithmetic_side_effects.rs:303:5
|
LL | _n %= &-0;
| ^^^^^^^^^
error: arithmetic operation that can potentially result in unexpected side-effects
2023-02-12 20:34:07 +00:00
--> $DIR/arithmetic_side_effects.rs:304:5
|
LL | _n *= -2;
| ^^^^^^^^
error: arithmetic operation that can potentially result in unexpected side-effects
2023-02-12 20:34:07 +00:00
--> $DIR/arithmetic_side_effects.rs:305:5
|
LL | _n *= &-2;
| ^^^^^^^^^
error: arithmetic operation that can potentially result in unexpected side-effects
2023-02-12 20:34:07 +00:00
--> $DIR/arithmetic_side_effects.rs:306:5
|
LL | _custom += Custom;
| ^^^^^^^^^^^^^^^^^
error: arithmetic operation that can potentially result in unexpected side-effects
2023-02-12 20:34:07 +00:00
--> $DIR/arithmetic_side_effects.rs:307:5
|
LL | _custom += &Custom;
| ^^^^^^^^^^^^^^^^^^
error: arithmetic operation that can potentially result in unexpected side-effects
2023-02-12 20:34:07 +00:00
--> $DIR/arithmetic_side_effects.rs:308:5
|
LL | _custom -= Custom;
| ^^^^^^^^^^^^^^^^^
error: arithmetic operation that can potentially result in unexpected side-effects
2023-02-12 20:34:07 +00:00
--> $DIR/arithmetic_side_effects.rs:309:5
|
LL | _custom -= &Custom;
| ^^^^^^^^^^^^^^^^^^
error: arithmetic operation that can potentially result in unexpected side-effects
2023-02-12 20:34:07 +00:00
--> $DIR/arithmetic_side_effects.rs:310:5
|
LL | _custom /= Custom;
| ^^^^^^^^^^^^^^^^^
error: arithmetic operation that can potentially result in unexpected side-effects
2023-02-12 20:34:07 +00:00
--> $DIR/arithmetic_side_effects.rs:311:5
|
LL | _custom /= &Custom;
| ^^^^^^^^^^^^^^^^^^
error: arithmetic operation that can potentially result in unexpected side-effects
2023-02-12 20:34:07 +00:00
--> $DIR/arithmetic_side_effects.rs:312:5
|
LL | _custom %= Custom;
| ^^^^^^^^^^^^^^^^^
error: arithmetic operation that can potentially result in unexpected side-effects
2023-02-12 20:34:07 +00:00
--> $DIR/arithmetic_side_effects.rs:313:5
|
LL | _custom %= &Custom;
| ^^^^^^^^^^^^^^^^^^
error: arithmetic operation that can potentially result in unexpected side-effects
2023-02-12 20:34:07 +00:00
--> $DIR/arithmetic_side_effects.rs:314:5
|
LL | _custom *= Custom;
| ^^^^^^^^^^^^^^^^^
error: arithmetic operation that can potentially result in unexpected side-effects
2023-02-12 20:34:07 +00:00
--> $DIR/arithmetic_side_effects.rs:315:5
|
LL | _custom *= &Custom;
| ^^^^^^^^^^^^^^^^^^
error: arithmetic operation that can potentially result in unexpected side-effects
2023-02-12 20:34:07 +00:00
--> $DIR/arithmetic_side_effects.rs:316:5
|
LL | _custom >>= Custom;
| ^^^^^^^^^^^^^^^^^^
error: arithmetic operation that can potentially result in unexpected side-effects
--> $DIR/arithmetic_side_effects.rs:317:5
|
LL | _custom >>= &Custom;
| ^^^^^^^^^^^^^^^^^^^
error: arithmetic operation that can potentially result in unexpected side-effects
--> $DIR/arithmetic_side_effects.rs:318:5
|
LL | _custom <<= Custom;
| ^^^^^^^^^^^^^^^^^^
error: arithmetic operation that can potentially result in unexpected side-effects
--> $DIR/arithmetic_side_effects.rs:319:5
|
LL | _custom <<= &Custom;
| ^^^^^^^^^^^^^^^^^^^
error: arithmetic operation that can potentially result in unexpected side-effects
--> $DIR/arithmetic_side_effects.rs:320:5
|
LL | _custom += -Custom;
| ^^^^^^^^^^^^^^^^^^
error: arithmetic operation that can potentially result in unexpected side-effects
2023-02-12 20:34:07 +00:00
--> $DIR/arithmetic_side_effects.rs:321:5
|
LL | _custom += &-Custom;
| ^^^^^^^^^^^^^^^^^^^
error: arithmetic operation that can potentially result in unexpected side-effects
2023-02-12 20:34:07 +00:00
--> $DIR/arithmetic_side_effects.rs:322:5
|
LL | _custom -= -Custom;
| ^^^^^^^^^^^^^^^^^^
error: arithmetic operation that can potentially result in unexpected side-effects
2023-02-12 20:34:07 +00:00
--> $DIR/arithmetic_side_effects.rs:323:5
|
LL | _custom -= &-Custom;
| ^^^^^^^^^^^^^^^^^^^
error: arithmetic operation that can potentially result in unexpected side-effects
2023-02-12 20:34:07 +00:00
--> $DIR/arithmetic_side_effects.rs:324:5
|
LL | _custom /= -Custom;
| ^^^^^^^^^^^^^^^^^^
error: arithmetic operation that can potentially result in unexpected side-effects
2023-02-12 20:34:07 +00:00
--> $DIR/arithmetic_side_effects.rs:325:5
|
LL | _custom /= &-Custom;
| ^^^^^^^^^^^^^^^^^^^
error: arithmetic operation that can potentially result in unexpected side-effects
2023-02-12 20:34:07 +00:00
--> $DIR/arithmetic_side_effects.rs:326:5
|
LL | _custom %= -Custom;
| ^^^^^^^^^^^^^^^^^^
error: arithmetic operation that can potentially result in unexpected side-effects
2023-02-12 20:34:07 +00:00
--> $DIR/arithmetic_side_effects.rs:327:5
|
LL | _custom %= &-Custom;
| ^^^^^^^^^^^^^^^^^^^
error: arithmetic operation that can potentially result in unexpected side-effects
2023-02-12 20:34:07 +00:00
--> $DIR/arithmetic_side_effects.rs:328:5
|
LL | _custom *= -Custom;
| ^^^^^^^^^^^^^^^^^^
error: arithmetic operation that can potentially result in unexpected side-effects
2023-02-12 20:34:07 +00:00
--> $DIR/arithmetic_side_effects.rs:329:5
|
LL | _custom *= &-Custom;
| ^^^^^^^^^^^^^^^^^^^
error: arithmetic operation that can potentially result in unexpected side-effects
2023-02-12 20:34:07 +00:00
--> $DIR/arithmetic_side_effects.rs:330:5
|
LL | _custom >>= -Custom;
| ^^^^^^^^^^^^^^^^^^^
error: arithmetic operation that can potentially result in unexpected side-effects
--> $DIR/arithmetic_side_effects.rs:331:5
|
LL | _custom >>= &-Custom;
| ^^^^^^^^^^^^^^^^^^^^
error: arithmetic operation that can potentially result in unexpected side-effects
--> $DIR/arithmetic_side_effects.rs:332:5
|
LL | _custom <<= -Custom;
| ^^^^^^^^^^^^^^^^^^^
error: arithmetic operation that can potentially result in unexpected side-effects
--> $DIR/arithmetic_side_effects.rs:333:5
|
LL | _custom <<= &-Custom;
| ^^^^^^^^^^^^^^^^^^^^
error: arithmetic operation that can potentially result in unexpected side-effects
--> $DIR/arithmetic_side_effects.rs:336:10
|
LL | _n = _n + 1;
| ^^^^^^
error: arithmetic operation that can potentially result in unexpected side-effects
2023-02-12 20:34:07 +00:00
--> $DIR/arithmetic_side_effects.rs:337:10
|
LL | _n = _n + &1;
| ^^^^^^^
error: arithmetic operation that can potentially result in unexpected side-effects
2023-02-12 20:34:07 +00:00
--> $DIR/arithmetic_side_effects.rs:338:10
|
LL | _n = 1 + _n;
| ^^^^^^
error: arithmetic operation that can potentially result in unexpected side-effects
2023-02-12 20:34:07 +00:00
--> $DIR/arithmetic_side_effects.rs:339:10
|
LL | _n = &1 + _n;
| ^^^^^^^
error: arithmetic operation that can potentially result in unexpected side-effects
2023-02-12 20:34:07 +00:00
--> $DIR/arithmetic_side_effects.rs:340:10
|
LL | _n = _n - 1;
| ^^^^^^
error: arithmetic operation that can potentially result in unexpected side-effects
2023-02-12 20:34:07 +00:00
--> $DIR/arithmetic_side_effects.rs:341:10
|
LL | _n = _n - &1;
| ^^^^^^^
error: arithmetic operation that can potentially result in unexpected side-effects
2023-02-12 20:34:07 +00:00
--> $DIR/arithmetic_side_effects.rs:342:10
|
LL | _n = 1 - _n;
| ^^^^^^
error: arithmetic operation that can potentially result in unexpected side-effects
2023-02-12 20:34:07 +00:00
--> $DIR/arithmetic_side_effects.rs:343:10
|
LL | _n = &1 - _n;
| ^^^^^^^
error: arithmetic operation that can potentially result in unexpected side-effects
2023-02-12 20:34:07 +00:00
--> $DIR/arithmetic_side_effects.rs:344:10
|
LL | _n = _n / 0;
| ^^^^^^
error: arithmetic operation that can potentially result in unexpected side-effects
2023-02-12 20:34:07 +00:00
--> $DIR/arithmetic_side_effects.rs:345:10
|
LL | _n = _n / &0;
| ^^^^^^^
error: arithmetic operation that can potentially result in unexpected side-effects
2023-02-12 20:34:07 +00:00
--> $DIR/arithmetic_side_effects.rs:346:10
|
LL | _n = _n % 0;
| ^^^^^^
error: arithmetic operation that can potentially result in unexpected side-effects
2023-02-12 20:34:07 +00:00
--> $DIR/arithmetic_side_effects.rs:347:10
|
LL | _n = _n % &0;
| ^^^^^^^
error: arithmetic operation that can potentially result in unexpected side-effects
2023-02-12 20:34:07 +00:00
--> $DIR/arithmetic_side_effects.rs:348:10
|
LL | _n = _n * 2;
| ^^^^^^
error: arithmetic operation that can potentially result in unexpected side-effects
2023-02-12 20:34:07 +00:00
--> $DIR/arithmetic_side_effects.rs:349:10
|
LL | _n = _n * &2;
| ^^^^^^^
error: arithmetic operation that can potentially result in unexpected side-effects
2023-02-12 20:34:07 +00:00
--> $DIR/arithmetic_side_effects.rs:350:10
|
LL | _n = 2 * _n;
| ^^^^^^
error: arithmetic operation that can potentially result in unexpected side-effects
2023-02-12 20:34:07 +00:00
--> $DIR/arithmetic_side_effects.rs:351:10
|
LL | _n = &2 * _n;
| ^^^^^^^
error: arithmetic operation that can potentially result in unexpected side-effects
2023-02-12 20:34:07 +00:00
--> $DIR/arithmetic_side_effects.rs:352:10
|
LL | _n = 23 + &85;
| ^^^^^^^^
error: arithmetic operation that can potentially result in unexpected side-effects
2023-02-12 20:34:07 +00:00
--> $DIR/arithmetic_side_effects.rs:353:10
|
LL | _n = &23 + 85;
| ^^^^^^^^
error: arithmetic operation that can potentially result in unexpected side-effects
2023-02-12 20:34:07 +00:00
--> $DIR/arithmetic_side_effects.rs:354:10
|
LL | _n = &23 + &85;
| ^^^^^^^^^
error: arithmetic operation that can potentially result in unexpected side-effects
2023-02-12 20:34:07 +00:00
--> $DIR/arithmetic_side_effects.rs:355:15
2022-09-30 18:30:40 +00:00
|
LL | _custom = _custom + _custom;
| ^^^^^^^^^^^^^^^^^
2022-09-30 18:30:40 +00:00
error: arithmetic operation that can potentially result in unexpected side-effects
2023-02-12 20:34:07 +00:00
--> $DIR/arithmetic_side_effects.rs:356:15
2022-09-30 18:30:40 +00:00
|
LL | _custom = _custom + &_custom;
| ^^^^^^^^^^^^^^^^^^
2022-09-30 18:30:40 +00:00
error: arithmetic operation that can potentially result in unexpected side-effects
2023-02-12 20:34:07 +00:00
--> $DIR/arithmetic_side_effects.rs:357:15
2022-09-30 18:30:40 +00:00
|
LL | _custom = Custom + _custom;
| ^^^^^^^^^^^^^^^^
2022-09-30 18:30:40 +00:00
error: arithmetic operation that can potentially result in unexpected side-effects
2023-02-12 20:34:07 +00:00
--> $DIR/arithmetic_side_effects.rs:358:15
2022-09-30 18:30:40 +00:00
|
LL | _custom = &Custom + _custom;
| ^^^^^^^^^^^^^^^^^
2022-09-30 18:30:40 +00:00
error: arithmetic operation that can potentially result in unexpected side-effects
2023-02-12 20:34:07 +00:00
--> $DIR/arithmetic_side_effects.rs:359:15
2022-09-30 18:30:40 +00:00
|
LL | _custom = _custom - Custom;
| ^^^^^^^^^^^^^^^^
2022-09-30 18:30:40 +00:00
error: arithmetic operation that can potentially result in unexpected side-effects
2023-02-12 20:34:07 +00:00
--> $DIR/arithmetic_side_effects.rs:360:15
2022-09-30 18:30:40 +00:00
|
LL | _custom = _custom - &Custom;
| ^^^^^^^^^^^^^^^^^
2022-09-30 18:30:40 +00:00
error: arithmetic operation that can potentially result in unexpected side-effects
2023-02-12 20:34:07 +00:00
--> $DIR/arithmetic_side_effects.rs:361:15
2022-09-30 18:30:40 +00:00
|
LL | _custom = Custom - _custom;
| ^^^^^^^^^^^^^^^^
2022-09-30 18:30:40 +00:00
error: arithmetic operation that can potentially result in unexpected side-effects
2023-02-12 20:34:07 +00:00
--> $DIR/arithmetic_side_effects.rs:362:15
2022-09-30 18:30:40 +00:00
|
LL | _custom = &Custom - _custom;
| ^^^^^^^^^^^^^^^^^
2022-09-30 18:30:40 +00:00
error: arithmetic operation that can potentially result in unexpected side-effects
2023-02-12 20:34:07 +00:00
--> $DIR/arithmetic_side_effects.rs:363:15
2022-09-30 18:30:40 +00:00
|
LL | _custom = _custom / Custom;
| ^^^^^^^^^^^^^^^^
2022-09-30 18:30:40 +00:00
error: arithmetic operation that can potentially result in unexpected side-effects
2023-02-12 20:34:07 +00:00
--> $DIR/arithmetic_side_effects.rs:364:15
2022-09-30 18:30:40 +00:00
|
LL | _custom = _custom / &Custom;
| ^^^^^^^^^^^^^^^^^
2022-09-30 18:30:40 +00:00
error: arithmetic operation that can potentially result in unexpected side-effects
2023-02-12 20:34:07 +00:00
--> $DIR/arithmetic_side_effects.rs:365:15
2022-09-30 18:30:40 +00:00
|
LL | _custom = _custom % Custom;
| ^^^^^^^^^^^^^^^^
2022-09-30 18:30:40 +00:00
error: arithmetic operation that can potentially result in unexpected side-effects
2023-02-12 20:34:07 +00:00
--> $DIR/arithmetic_side_effects.rs:366:15
2022-09-30 18:30:40 +00:00
|
LL | _custom = _custom % &Custom;
| ^^^^^^^^^^^^^^^^^
2022-09-30 18:30:40 +00:00
error: arithmetic operation that can potentially result in unexpected side-effects
2023-02-12 20:34:07 +00:00
--> $DIR/arithmetic_side_effects.rs:367:15
2022-09-30 18:30:40 +00:00
|
LL | _custom = _custom * Custom;
| ^^^^^^^^^^^^^^^^
2022-09-30 18:30:40 +00:00
error: arithmetic operation that can potentially result in unexpected side-effects
2023-02-12 20:34:07 +00:00
--> $DIR/arithmetic_side_effects.rs:368:15
2022-09-30 18:30:40 +00:00
|
LL | _custom = _custom * &Custom;
| ^^^^^^^^^^^^^^^^^
2022-09-30 18:30:40 +00:00
error: arithmetic operation that can potentially result in unexpected side-effects
2023-02-12 20:34:07 +00:00
--> $DIR/arithmetic_side_effects.rs:369:15
2022-09-30 18:30:40 +00:00
|
LL | _custom = Custom * _custom;
| ^^^^^^^^^^^^^^^^
2022-09-30 18:30:40 +00:00
error: arithmetic operation that can potentially result in unexpected side-effects
2023-02-12 20:34:07 +00:00
--> $DIR/arithmetic_side_effects.rs:370:15
2022-09-30 18:30:40 +00:00
|
LL | _custom = &Custom * _custom;
| ^^^^^^^^^^^^^^^^^
2022-09-30 18:30:40 +00:00
error: arithmetic operation that can potentially result in unexpected side-effects
2023-02-12 20:34:07 +00:00
--> $DIR/arithmetic_side_effects.rs:371:15
2022-09-30 18:30:40 +00:00
|
LL | _custom = Custom + &Custom;
| ^^^^^^^^^^^^^^^^
2022-09-30 18:30:40 +00:00
error: arithmetic operation that can potentially result in unexpected side-effects
2023-02-12 20:34:07 +00:00
--> $DIR/arithmetic_side_effects.rs:372:15
2022-09-30 18:30:40 +00:00
|
LL | _custom = &Custom + Custom;
| ^^^^^^^^^^^^^^^^
2022-09-30 18:30:40 +00:00
error: arithmetic operation that can potentially result in unexpected side-effects
2023-02-12 20:34:07 +00:00
--> $DIR/arithmetic_side_effects.rs:373:15
2022-09-30 18:30:40 +00:00
|
LL | _custom = &Custom + &Custom;
| ^^^^^^^^^^^^^^^^^
2022-09-30 18:30:40 +00:00
error: arithmetic operation that can potentially result in unexpected side-effects
2023-02-12 20:34:07 +00:00
--> $DIR/arithmetic_side_effects.rs:374:15
|
LL | _custom = _custom >> _custom;
| ^^^^^^^^^^^^^^^^^^
error: arithmetic operation that can potentially result in unexpected side-effects
--> $DIR/arithmetic_side_effects.rs:375:15
|
LL | _custom = _custom >> &_custom;
| ^^^^^^^^^^^^^^^^^^^
error: arithmetic operation that can potentially result in unexpected side-effects
--> $DIR/arithmetic_side_effects.rs:376:15
|
LL | _custom = Custom << _custom;
| ^^^^^^^^^^^^^^^^^
error: arithmetic operation that can potentially result in unexpected side-effects
--> $DIR/arithmetic_side_effects.rs:377:15
|
LL | _custom = &Custom << _custom;
| ^^^^^^^^^^^^^^^^^^
error: arithmetic operation that can potentially result in unexpected side-effects
--> $DIR/arithmetic_side_effects.rs:380:10
2022-09-30 18:30:40 +00:00
|
LL | _n = -_n;
| ^^^
2022-09-30 18:30:40 +00:00
error: arithmetic operation that can potentially result in unexpected side-effects
2023-02-12 20:34:07 +00:00
--> $DIR/arithmetic_side_effects.rs:381:10
2022-09-30 18:30:40 +00:00
|
LL | _n = -&_n;
| ^^^^
2022-09-30 18:30:40 +00:00
error: arithmetic operation that can potentially result in unexpected side-effects
2023-02-12 20:34:07 +00:00
--> $DIR/arithmetic_side_effects.rs:382:15
|
LL | _custom = -_custom;
| ^^^^^^^^
error: arithmetic operation that can potentially result in unexpected side-effects
2023-02-12 20:34:07 +00:00
--> $DIR/arithmetic_side_effects.rs:383:15
|
LL | _custom = -&_custom;
| ^^^^^^^^^
error: arithmetic operation that can potentially result in unexpected side-effects
2023-02-12 20:34:07 +00:00
--> $DIR/arithmetic_side_effects.rs:392:5
|
LL | 1 + i;
| ^^^^^
error: arithmetic operation that can potentially result in unexpected side-effects
2023-02-12 20:34:07 +00:00
--> $DIR/arithmetic_side_effects.rs:393:5
|
LL | i * 2;
| ^^^^^
2023-04-02 10:50:25 +00:00
error: arithmetic operation that can potentially result in unexpected side-effects
--> $DIR/arithmetic_side_effects.rs:394:5
|
LL | 1 % i / 2;
| ^^^^^
error: arithmetic operation that can potentially result in unexpected side-effects
2023-02-12 20:34:07 +00:00
--> $DIR/arithmetic_side_effects.rs:395:5
|
LL | i - 2 + 2 - i;
| ^^^^^^^^^^^^^
error: arithmetic operation that can potentially result in unexpected side-effects
2023-02-12 20:34:07 +00:00
--> $DIR/arithmetic_side_effects.rs:396:5
|
LL | -i;
| ^^
error: arithmetic operation that can potentially result in unexpected side-effects
2023-02-12 20:34:07 +00:00
--> $DIR/arithmetic_side_effects.rs:407:5
|
LL | i += 1;
| ^^^^^^
error: arithmetic operation that can potentially result in unexpected side-effects
2023-02-12 20:34:07 +00:00
--> $DIR/arithmetic_side_effects.rs:408:5
|
LL | i -= 1;
| ^^^^^^
error: arithmetic operation that can potentially result in unexpected side-effects
2023-02-12 20:34:07 +00:00
--> $DIR/arithmetic_side_effects.rs:409:5
|
LL | i *= 2;
| ^^^^^^
error: arithmetic operation that can potentially result in unexpected side-effects
2023-02-12 20:34:07 +00:00
--> $DIR/arithmetic_side_effects.rs:411:5
|
LL | i /= 0;
| ^^^^^^
error: arithmetic operation that can potentially result in unexpected side-effects
2023-02-12 20:34:07 +00:00
--> $DIR/arithmetic_side_effects.rs:413:5
|
LL | i /= var1;
| ^^^^^^^^^
error: arithmetic operation that can potentially result in unexpected side-effects
2023-02-12 20:34:07 +00:00
--> $DIR/arithmetic_side_effects.rs:414:5
|
LL | i /= var2;
| ^^^^^^^^^
error: arithmetic operation that can potentially result in unexpected side-effects
2023-02-12 20:34:07 +00:00
--> $DIR/arithmetic_side_effects.rs:416:5
|
LL | i %= 0;
| ^^^^^^
error: arithmetic operation that can potentially result in unexpected side-effects
2023-02-12 20:34:07 +00:00
--> $DIR/arithmetic_side_effects.rs:418:5
|
LL | i %= var1;
| ^^^^^^^^^
error: arithmetic operation that can potentially result in unexpected side-effects
2023-02-12 20:34:07 +00:00
--> $DIR/arithmetic_side_effects.rs:419:5
|
LL | i %= var2;
| ^^^^^^^^^
2023-04-02 10:50:25 +00:00
error: arithmetic operation that can potentially result in unexpected side-effects
--> $DIR/arithmetic_side_effects.rs:429:5
|
LL | 10 / a
| ^^^^^^
error: aborting due to 109 previous errors
2022-09-07 13:00:45 +00:00