2017-02-07 21:05:30 +01:00
|
|
|
error: statement with no effect
|
2017-08-01 17:54:21 +02:00
|
|
|
--> $DIR/no_effect.rs:34:5
|
2017-02-07 21:05:30 +01:00
|
|
|
|
|
2017-02-08 14:58:07 +01:00
|
|
|
34 | 0;
|
2017-02-07 21:05:30 +01:00
|
|
|
| ^^
|
|
|
|
|
|
2017-05-17 14:19:44 +02:00
|
|
|
= note: `-D no-effect` implied by `-D warnings`
|
2017-02-07 21:05:30 +01:00
|
|
|
|
|
|
|
error: statement with no effect
|
2017-08-01 17:54:21 +02:00
|
|
|
--> $DIR/no_effect.rs:35:5
|
2017-02-07 21:05:30 +01:00
|
|
|
|
|
2017-02-08 14:58:07 +01:00
|
|
|
35 | s2;
|
2017-02-07 21:05:30 +01:00
|
|
|
| ^^^
|
|
|
|
|
|
|
|
error: statement with no effect
|
2017-08-01 17:54:21 +02:00
|
|
|
--> $DIR/no_effect.rs:36:5
|
2017-02-07 21:05:30 +01:00
|
|
|
|
|
2017-02-08 14:58:07 +01:00
|
|
|
36 | Unit;
|
2017-02-07 21:05:30 +01:00
|
|
|
| ^^^^^
|
|
|
|
|
|
|
|
error: statement with no effect
|
2017-08-01 17:54:21 +02:00
|
|
|
--> $DIR/no_effect.rs:37:5
|
2017-02-07 21:05:30 +01:00
|
|
|
|
|
2017-02-08 14:58:07 +01:00
|
|
|
37 | Tuple(0);
|
2017-02-07 21:05:30 +01:00
|
|
|
| ^^^^^^^^^
|
|
|
|
|
|
|
|
error: statement with no effect
|
2017-08-01 17:54:21 +02:00
|
|
|
--> $DIR/no_effect.rs:38:5
|
2017-02-07 21:05:30 +01:00
|
|
|
|
|
2017-02-08 14:58:07 +01:00
|
|
|
38 | Struct { field: 0 };
|
2017-02-07 21:05:30 +01:00
|
|
|
| ^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
error: statement with no effect
|
2017-08-01 17:54:21 +02:00
|
|
|
--> $DIR/no_effect.rs:39:5
|
2017-02-07 21:05:30 +01:00
|
|
|
|
|
2017-02-08 14:58:07 +01:00
|
|
|
39 | Struct { ..s };
|
2017-02-07 21:05:30 +01:00
|
|
|
| ^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
error: statement with no effect
|
2017-08-01 17:54:21 +02:00
|
|
|
--> $DIR/no_effect.rs:40:5
|
2017-02-07 21:05:30 +01:00
|
|
|
|
|
2017-02-08 14:58:07 +01:00
|
|
|
40 | Union { a: 0 };
|
2017-02-07 21:05:30 +01:00
|
|
|
| ^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
error: statement with no effect
|
2017-08-01 17:54:21 +02:00
|
|
|
--> $DIR/no_effect.rs:41:5
|
2017-02-07 21:05:30 +01:00
|
|
|
|
|
2017-02-08 14:58:07 +01:00
|
|
|
41 | Enum::Tuple(0);
|
2017-02-07 21:05:30 +01:00
|
|
|
| ^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
error: statement with no effect
|
2017-08-01 17:54:21 +02:00
|
|
|
--> $DIR/no_effect.rs:42:5
|
2017-02-07 21:05:30 +01:00
|
|
|
|
|
2017-02-08 14:58:07 +01:00
|
|
|
42 | Enum::Struct { field: 0 };
|
2017-02-07 21:05:30 +01:00
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
error: statement with no effect
|
2017-08-01 17:54:21 +02:00
|
|
|
--> $DIR/no_effect.rs:43:5
|
2017-02-07 21:05:30 +01:00
|
|
|
|
|
2017-02-08 14:58:07 +01:00
|
|
|
43 | 5 + 6;
|
2017-02-07 21:05:30 +01:00
|
|
|
| ^^^^^^
|
|
|
|
|
|
|
|
error: statement with no effect
|
2017-08-01 17:54:21 +02:00
|
|
|
--> $DIR/no_effect.rs:44:5
|
2017-02-07 21:05:30 +01:00
|
|
|
|
|
2017-02-08 14:58:07 +01:00
|
|
|
44 | *&42;
|
2017-02-07 21:05:30 +01:00
|
|
|
| ^^^^^
|
|
|
|
|
|
|
|
error: statement with no effect
|
2017-08-01 17:54:21 +02:00
|
|
|
--> $DIR/no_effect.rs:45:5
|
2017-02-07 21:05:30 +01:00
|
|
|
|
|
2017-02-08 14:58:07 +01:00
|
|
|
45 | &6;
|
2017-02-07 21:05:30 +01:00
|
|
|
| ^^^
|
|
|
|
|
|
|
|
error: statement with no effect
|
2017-08-01 17:54:21 +02:00
|
|
|
--> $DIR/no_effect.rs:46:5
|
2017-02-07 21:05:30 +01:00
|
|
|
|
|
2017-02-08 14:58:07 +01:00
|
|
|
46 | (5, 6, 7);
|
2017-02-07 21:05:30 +01:00
|
|
|
| ^^^^^^^^^^
|
|
|
|
|
|
|
|
error: statement with no effect
|
2017-08-01 17:54:21 +02:00
|
|
|
--> $DIR/no_effect.rs:47:5
|
2017-02-07 21:05:30 +01:00
|
|
|
|
|
2017-02-08 14:58:07 +01:00
|
|
|
47 | box 42;
|
2017-02-07 21:05:30 +01:00
|
|
|
| ^^^^^^^
|
|
|
|
|
|
|
|
error: statement with no effect
|
2017-08-01 17:54:21 +02:00
|
|
|
--> $DIR/no_effect.rs:48:5
|
2017-02-07 21:05:30 +01:00
|
|
|
|
|
2017-02-08 14:58:07 +01:00
|
|
|
48 | ..;
|
2017-02-07 21:05:30 +01:00
|
|
|
| ^^^
|
|
|
|
|
|
|
|
error: statement with no effect
|
2017-08-01 17:54:21 +02:00
|
|
|
--> $DIR/no_effect.rs:49:5
|
2017-02-07 21:05:30 +01:00
|
|
|
|
|
2017-02-08 14:58:07 +01:00
|
|
|
49 | 5..;
|
2017-02-07 21:05:30 +01:00
|
|
|
| ^^^^
|
|
|
|
|
|
|
|
error: statement with no effect
|
2017-08-01 17:54:21 +02:00
|
|
|
--> $DIR/no_effect.rs:50:5
|
2017-02-07 21:05:30 +01:00
|
|
|
|
|
2017-02-08 14:58:07 +01:00
|
|
|
50 | ..5;
|
2017-02-07 21:05:30 +01:00
|
|
|
| ^^^^
|
|
|
|
|
|
|
|
error: statement with no effect
|
2017-08-01 17:54:21 +02:00
|
|
|
--> $DIR/no_effect.rs:51:5
|
2017-02-07 21:05:30 +01:00
|
|
|
|
|
2017-02-08 14:58:07 +01:00
|
|
|
51 | 5..6;
|
2017-02-07 21:05:30 +01:00
|
|
|
| ^^^^^
|
|
|
|
|
|
|
|
error: statement with no effect
|
2017-08-01 17:54:21 +02:00
|
|
|
--> $DIR/no_effect.rs:52:5
|
2017-02-07 21:05:30 +01:00
|
|
|
|
|
2017-02-08 14:58:07 +01:00
|
|
|
52 | 5...6;
|
2017-02-07 21:05:30 +01:00
|
|
|
| ^^^^^^
|
|
|
|
|
|
|
|
error: statement with no effect
|
2017-08-01 17:54:21 +02:00
|
|
|
--> $DIR/no_effect.rs:53:5
|
2017-02-07 21:05:30 +01:00
|
|
|
|
|
2017-02-08 14:58:07 +01:00
|
|
|
53 | [42, 55];
|
2017-02-07 21:05:30 +01:00
|
|
|
| ^^^^^^^^^
|
|
|
|
|
|
|
|
error: statement with no effect
|
2017-08-01 17:54:21 +02:00
|
|
|
--> $DIR/no_effect.rs:54:5
|
2017-02-07 21:05:30 +01:00
|
|
|
|
|
2017-02-08 14:58:07 +01:00
|
|
|
54 | [42, 55][1];
|
2017-02-07 21:05:30 +01:00
|
|
|
| ^^^^^^^^^^^^
|
|
|
|
|
|
|
|
error: statement with no effect
|
2017-08-01 17:54:21 +02:00
|
|
|
--> $DIR/no_effect.rs:55:5
|
2017-02-07 21:05:30 +01:00
|
|
|
|
|
2017-02-08 14:58:07 +01:00
|
|
|
55 | (42, 55).1;
|
2017-02-07 21:05:30 +01:00
|
|
|
| ^^^^^^^^^^^
|
|
|
|
|
|
|
|
error: statement with no effect
|
2017-08-01 17:54:21 +02:00
|
|
|
--> $DIR/no_effect.rs:56:5
|
2017-02-07 21:05:30 +01:00
|
|
|
|
|
2017-02-08 14:58:07 +01:00
|
|
|
56 | [42; 55];
|
2017-02-07 21:05:30 +01:00
|
|
|
| ^^^^^^^^^
|
|
|
|
|
|
|
|
error: statement with no effect
|
2017-08-01 17:54:21 +02:00
|
|
|
--> $DIR/no_effect.rs:57:5
|
2017-02-07 21:05:30 +01:00
|
|
|
|
|
2017-02-08 14:58:07 +01:00
|
|
|
57 | [42; 55][13];
|
2017-02-07 21:05:30 +01:00
|
|
|
| ^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
error: statement with no effect
|
2017-08-01 17:54:21 +02:00
|
|
|
--> $DIR/no_effect.rs:59:5
|
2017-02-07 21:05:30 +01:00
|
|
|
|
|
2017-02-08 14:58:07 +01:00
|
|
|
59 | || x += 5;
|
2017-02-07 21:05:30 +01:00
|
|
|
| ^^^^^^^^^^
|
|
|
|
|
|
|
|
error: statement can be reduced
|
2017-08-01 17:54:21 +02:00
|
|
|
--> $DIR/no_effect.rs:65:5
|
2017-02-07 21:05:30 +01:00
|
|
|
|
|
2017-02-08 14:58:07 +01:00
|
|
|
65 | Tuple(get_number());
|
2017-07-21 10:40:23 +02:00
|
|
|
| ^^^^^^^^^^^^^^^^^^^^ help: replace it with: `get_number();`
|
2017-02-07 21:05:30 +01:00
|
|
|
|
|
2017-05-17 14:19:44 +02:00
|
|
|
= note: `-D unnecessary-operation` implied by `-D warnings`
|
2017-02-07 21:05:30 +01:00
|
|
|
|
|
|
|
error: statement can be reduced
|
2017-08-01 17:54:21 +02:00
|
|
|
--> $DIR/no_effect.rs:66:5
|
2017-02-07 21:05:30 +01:00
|
|
|
|
|
2017-05-11 16:26:26 +02:00
|
|
|
66 | Struct { field: get_number() };
|
2017-07-21 10:40:23 +02:00
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: replace it with: `get_number();`
|
2017-02-07 21:05:30 +01:00
|
|
|
|
|
|
|
error: statement can be reduced
|
2017-08-01 17:54:21 +02:00
|
|
|
--> $DIR/no_effect.rs:67:5
|
2017-02-07 21:05:30 +01:00
|
|
|
|
|
2017-05-11 16:26:26 +02:00
|
|
|
67 | Struct { ..get_struct() };
|
2017-07-21 10:40:23 +02:00
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^ help: replace it with: `get_struct();`
|
2017-02-07 21:05:30 +01:00
|
|
|
|
|
|
|
error: statement can be reduced
|
2017-08-01 17:54:21 +02:00
|
|
|
--> $DIR/no_effect.rs:68:5
|
2017-02-07 21:05:30 +01:00
|
|
|
|
|
2017-05-11 16:26:26 +02:00
|
|
|
68 | Enum::Tuple(get_number());
|
2017-07-21 10:40:23 +02:00
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^ help: replace it with: `get_number();`
|
2017-02-07 21:05:30 +01:00
|
|
|
|
|
|
|
error: statement can be reduced
|
2017-08-01 17:54:21 +02:00
|
|
|
--> $DIR/no_effect.rs:69:5
|
2017-02-07 21:05:30 +01:00
|
|
|
|
|
2017-05-11 16:26:26 +02:00
|
|
|
69 | Enum::Struct { field: get_number() };
|
2017-07-21 10:40:23 +02:00
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: replace it with: `get_number();`
|
2017-02-07 21:05:30 +01:00
|
|
|
|
|
|
|
error: statement can be reduced
|
2017-08-01 17:54:21 +02:00
|
|
|
--> $DIR/no_effect.rs:70:5
|
2017-02-07 21:05:30 +01:00
|
|
|
|
|
2017-05-11 16:26:26 +02:00
|
|
|
70 | 5 + get_number();
|
2017-07-21 10:40:23 +02:00
|
|
|
| ^^^^^^^^^^^^^^^^^ help: replace it with: `5;get_number();`
|
2017-02-07 21:05:30 +01:00
|
|
|
|
|
|
|
error: statement can be reduced
|
2017-08-01 17:54:21 +02:00
|
|
|
--> $DIR/no_effect.rs:71:5
|
2017-02-07 21:05:30 +01:00
|
|
|
|
|
2017-05-11 16:26:26 +02:00
|
|
|
71 | *&get_number();
|
2017-07-21 10:40:23 +02:00
|
|
|
| ^^^^^^^^^^^^^^^ help: replace it with: `get_number();`
|
2017-02-07 21:05:30 +01:00
|
|
|
|
|
|
|
error: statement can be reduced
|
2017-08-01 17:54:21 +02:00
|
|
|
--> $DIR/no_effect.rs:72:5
|
2017-02-07 21:05:30 +01:00
|
|
|
|
|
2017-05-11 16:26:26 +02:00
|
|
|
72 | &get_number();
|
2017-07-21 10:40:23 +02:00
|
|
|
| ^^^^^^^^^^^^^^ help: replace it with: `get_number();`
|
2017-02-07 21:05:30 +01:00
|
|
|
|
|
|
|
error: statement can be reduced
|
2017-08-01 17:54:21 +02:00
|
|
|
--> $DIR/no_effect.rs:73:5
|
2017-02-07 21:05:30 +01:00
|
|
|
|
|
2017-05-11 16:26:26 +02:00
|
|
|
73 | (5, 6, get_number());
|
2017-07-21 10:40:23 +02:00
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^ help: replace it with: `5;6;get_number();`
|
2017-02-07 21:05:30 +01:00
|
|
|
|
|
|
|
error: statement can be reduced
|
2017-08-01 17:54:21 +02:00
|
|
|
--> $DIR/no_effect.rs:74:5
|
2017-02-07 21:05:30 +01:00
|
|
|
|
|
2017-05-11 16:26:26 +02:00
|
|
|
74 | box get_number();
|
2017-07-21 10:40:23 +02:00
|
|
|
| ^^^^^^^^^^^^^^^^^ help: replace it with: `get_number();`
|
2017-02-07 21:05:30 +01:00
|
|
|
|
|
|
|
error: statement can be reduced
|
2017-08-01 17:54:21 +02:00
|
|
|
--> $DIR/no_effect.rs:75:5
|
2017-02-07 21:05:30 +01:00
|
|
|
|
|
2017-05-11 16:26:26 +02:00
|
|
|
75 | get_number()..;
|
2017-07-21 10:40:23 +02:00
|
|
|
| ^^^^^^^^^^^^^^^ help: replace it with: `get_number();`
|
2017-02-07 21:05:30 +01:00
|
|
|
|
|
|
|
error: statement can be reduced
|
2017-08-01 17:54:21 +02:00
|
|
|
--> $DIR/no_effect.rs:76:5
|
2017-02-07 21:05:30 +01:00
|
|
|
|
|
2017-05-11 16:26:26 +02:00
|
|
|
76 | ..get_number();
|
2017-07-21 10:40:23 +02:00
|
|
|
| ^^^^^^^^^^^^^^^ help: replace it with: `get_number();`
|
2017-02-07 21:05:30 +01:00
|
|
|
|
|
|
|
error: statement can be reduced
|
2017-08-01 17:54:21 +02:00
|
|
|
--> $DIR/no_effect.rs:77:5
|
2017-05-11 16:26:26 +02:00
|
|
|
|
|
|
|
|
77 | 5..get_number();
|
2017-07-21 10:40:23 +02:00
|
|
|
| ^^^^^^^^^^^^^^^^ help: replace it with: `5;get_number();`
|
2017-02-07 21:05:30 +01:00
|
|
|
|
|
|
|
error: statement can be reduced
|
2017-08-01 17:54:21 +02:00
|
|
|
--> $DIR/no_effect.rs:78:5
|
2017-05-11 16:26:26 +02:00
|
|
|
|
|
|
|
|
78 | [42, get_number()];
|
2017-07-21 10:40:23 +02:00
|
|
|
| ^^^^^^^^^^^^^^^^^^^ help: replace it with: `42;get_number();`
|
2017-02-07 21:05:30 +01:00
|
|
|
|
|
|
|
error: statement can be reduced
|
2017-08-01 17:54:21 +02:00
|
|
|
--> $DIR/no_effect.rs:79:5
|
2017-05-11 16:26:26 +02:00
|
|
|
|
|
|
|
|
79 | [42, 55][get_number() as usize];
|
2017-07-21 10:40:23 +02:00
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: replace it with: `[42, 55];get_number() as usize;`
|
2017-02-07 21:05:30 +01:00
|
|
|
|
|
|
|
error: statement can be reduced
|
2017-08-01 17:54:21 +02:00
|
|
|
--> $DIR/no_effect.rs:80:5
|
2017-05-11 16:26:26 +02:00
|
|
|
|
|
|
|
|
80 | (42, get_number()).1;
|
2017-07-21 10:40:23 +02:00
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^ help: replace it with: `42;get_number();`
|
2017-02-07 21:05:30 +01:00
|
|
|
|
|
|
|
error: statement can be reduced
|
2017-08-01 17:54:21 +02:00
|
|
|
--> $DIR/no_effect.rs:81:5
|
2017-05-11 16:26:26 +02:00
|
|
|
|
|
|
|
|
81 | [get_number(); 55];
|
2017-07-21 10:40:23 +02:00
|
|
|
| ^^^^^^^^^^^^^^^^^^^ help: replace it with: `get_number();`
|
2017-02-07 21:05:30 +01:00
|
|
|
|
|
|
|
error: statement can be reduced
|
2017-08-01 17:54:21 +02:00
|
|
|
--> $DIR/no_effect.rs:82:5
|
2017-05-11 16:26:26 +02:00
|
|
|
|
|
|
|
|
82 | [42; 55][get_number() as usize];
|
2017-07-21 10:40:23 +02:00
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: replace it with: `[42; 55];get_number() as usize;`
|
2017-02-07 21:05:30 +01:00
|
|
|
|
|
|
|
error: statement can be reduced
|
2017-08-01 17:54:21 +02:00
|
|
|
--> $DIR/no_effect.rs:83:5
|
2017-05-11 16:26:26 +02:00
|
|
|
|
|
|
|
|
83 | {get_number()};
|
2017-07-21 10:40:23 +02:00
|
|
|
| ^^^^^^^^^^^^^^^ help: replace it with: `get_number();`
|
2017-02-07 21:05:30 +01:00
|
|
|
|
2017-07-03 06:37:30 +02:00
|
|
|
error: aborting due to 44 previous errors
|
2017-02-07 21:05:30 +01:00
|
|
|
|