2017-02-07 21:05:30 +01:00
|
|
|
error: statement with no effect
|
2019-01-07 22:33:18 +01:00
|
|
|
--> $DIR/no_effect.rs:65:5
|
2017-02-07 21:05:30 +01:00
|
|
|
|
|
2018-12-27 16:57:55 +01:00
|
|
|
LL | 0;
|
2017-02-07 21:05:30 +01:00
|
|
|
| ^^
|
|
|
|
|
|
2018-08-01 16:30:44 +02:00
|
|
|
= note: `-D clippy::no-effect` implied by `-D warnings`
|
2017-02-07 21:05:30 +01:00
|
|
|
|
|
|
|
error: statement with no effect
|
2019-01-07 22:33:18 +01:00
|
|
|
--> $DIR/no_effect.rs:66:5
|
2017-02-07 21:05:30 +01:00
|
|
|
|
|
2018-12-27 16:57:55 +01:00
|
|
|
LL | s2;
|
2018-02-10 21:13:17 +01:00
|
|
|
| ^^^
|
2017-02-07 21:05:30 +01:00
|
|
|
|
|
|
|
error: statement with no effect
|
2019-01-07 22:33:18 +01:00
|
|
|
--> $DIR/no_effect.rs:67:5
|
2017-02-07 21:05:30 +01:00
|
|
|
|
|
2018-12-27 16:57:55 +01:00
|
|
|
LL | Unit;
|
2018-02-10 21:13:17 +01:00
|
|
|
| ^^^^^
|
2017-02-07 21:05:30 +01:00
|
|
|
|
|
|
|
error: statement with no effect
|
2019-01-07 22:33:18 +01:00
|
|
|
--> $DIR/no_effect.rs:68:5
|
2017-02-07 21:05:30 +01:00
|
|
|
|
|
2018-12-27 16:57:55 +01:00
|
|
|
LL | Tuple(0);
|
2018-02-10 21:13:17 +01:00
|
|
|
| ^^^^^^^^^
|
2017-02-07 21:05:30 +01:00
|
|
|
|
|
|
|
error: statement with no effect
|
2019-01-07 22:33:18 +01:00
|
|
|
--> $DIR/no_effect.rs:69:5
|
2017-02-07 21:05:30 +01:00
|
|
|
|
|
2018-12-27 16:57:55 +01:00
|
|
|
LL | Struct { field: 0 };
|
2018-02-10 21:13:17 +01:00
|
|
|
| ^^^^^^^^^^^^^^^^^^^^
|
2017-02-07 21:05:30 +01:00
|
|
|
|
|
|
|
error: statement with no effect
|
2019-01-07 22:33:18 +01:00
|
|
|
--> $DIR/no_effect.rs:70:5
|
2017-02-07 21:05:30 +01:00
|
|
|
|
|
2018-12-27 16:57:55 +01:00
|
|
|
LL | Struct { ..s };
|
2017-02-07 21:05:30 +01:00
|
|
|
| ^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
error: statement with no effect
|
2019-01-07 22:33:18 +01:00
|
|
|
--> $DIR/no_effect.rs:71:5
|
2017-02-07 21:05:30 +01:00
|
|
|
|
|
2018-12-27 16:57:55 +01:00
|
|
|
LL | Union { a: 0 };
|
2017-02-07 21:05:30 +01:00
|
|
|
| ^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
error: statement with no effect
|
2019-01-07 22:33:18 +01:00
|
|
|
--> $DIR/no_effect.rs:72:5
|
2017-02-07 21:05:30 +01:00
|
|
|
|
|
2018-12-27 16:57:55 +01:00
|
|
|
LL | Enum::Tuple(0);
|
2018-02-10 21:13:17 +01:00
|
|
|
| ^^^^^^^^^^^^^^^
|
2017-02-07 21:05:30 +01:00
|
|
|
|
|
|
|
error: statement with no effect
|
2019-01-07 22:33:18 +01:00
|
|
|
--> $DIR/no_effect.rs:73:5
|
2017-02-07 21:05:30 +01:00
|
|
|
|
|
2018-12-27 16:57:55 +01:00
|
|
|
LL | Enum::Struct { field: 0 };
|
2018-02-10 21:13:17 +01:00
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^
|
2017-02-07 21:05:30 +01:00
|
|
|
|
|
|
|
error: statement with no effect
|
2019-01-07 22:33:18 +01:00
|
|
|
--> $DIR/no_effect.rs:74:5
|
2017-02-07 21:05:30 +01:00
|
|
|
|
|
2018-12-27 16:57:55 +01:00
|
|
|
LL | 5 + 6;
|
2018-02-10 21:13:17 +01:00
|
|
|
| ^^^^^^
|
2017-02-07 21:05:30 +01:00
|
|
|
|
|
|
|
error: statement with no effect
|
2019-01-07 22:33:18 +01:00
|
|
|
--> $DIR/no_effect.rs:75:5
|
2017-02-07 21:05:30 +01:00
|
|
|
|
|
2018-12-27 16:57:55 +01:00
|
|
|
LL | *&42;
|
2018-02-10 21:13:17 +01:00
|
|
|
| ^^^^^
|
2017-02-07 21:05:30 +01:00
|
|
|
|
|
|
|
error: statement with no effect
|
2019-01-07 22:33:18 +01:00
|
|
|
--> $DIR/no_effect.rs:76:5
|
2017-02-07 21:05:30 +01:00
|
|
|
|
|
2018-12-27 16:57:55 +01:00
|
|
|
LL | &6;
|
2018-02-10 21:13:17 +01:00
|
|
|
| ^^^
|
2017-02-07 21:05:30 +01:00
|
|
|
|
|
|
|
error: statement with no effect
|
2019-01-07 22:33:18 +01:00
|
|
|
--> $DIR/no_effect.rs:77:5
|
2017-02-07 21:05:30 +01:00
|
|
|
|
|
2018-12-27 16:57:55 +01:00
|
|
|
LL | (5, 6, 7);
|
2018-02-10 21:13:17 +01:00
|
|
|
| ^^^^^^^^^^
|
2017-02-07 21:05:30 +01:00
|
|
|
|
|
|
|
error: statement with no effect
|
2019-01-07 22:33:18 +01:00
|
|
|
--> $DIR/no_effect.rs:78:5
|
2017-02-07 21:05:30 +01:00
|
|
|
|
|
2018-12-27 16:57:55 +01:00
|
|
|
LL | box 42;
|
2018-02-10 21:13:17 +01:00
|
|
|
| ^^^^^^^
|
2017-02-07 21:05:30 +01:00
|
|
|
|
|
|
|
error: statement with no effect
|
2019-01-07 22:33:18 +01:00
|
|
|
--> $DIR/no_effect.rs:79:5
|
2017-02-07 21:05:30 +01:00
|
|
|
|
|
2018-12-27 16:57:55 +01:00
|
|
|
LL | ..;
|
2018-02-10 21:13:17 +01:00
|
|
|
| ^^^
|
2017-02-07 21:05:30 +01:00
|
|
|
|
|
|
|
error: statement with no effect
|
2019-01-07 22:33:18 +01:00
|
|
|
--> $DIR/no_effect.rs:80:5
|
2017-02-07 21:05:30 +01:00
|
|
|
|
|
2018-12-27 16:57:55 +01:00
|
|
|
LL | 5..;
|
2017-02-07 21:05:30 +01:00
|
|
|
| ^^^^
|
|
|
|
|
|
|
|
error: statement with no effect
|
2019-01-07 22:33:18 +01:00
|
|
|
--> $DIR/no_effect.rs:81:5
|
2017-02-07 21:05:30 +01:00
|
|
|
|
|
2018-12-27 16:57:55 +01:00
|
|
|
LL | ..5;
|
2018-02-10 21:13:17 +01:00
|
|
|
| ^^^^
|
2017-02-07 21:05:30 +01:00
|
|
|
|
|
|
|
error: statement with no effect
|
2019-01-07 22:33:18 +01:00
|
|
|
--> $DIR/no_effect.rs:82:5
|
2017-02-07 21:05:30 +01:00
|
|
|
|
|
2018-12-27 16:57:55 +01:00
|
|
|
LL | 5..6;
|
2018-02-10 21:13:17 +01:00
|
|
|
| ^^^^^
|
2017-02-07 21:05:30 +01:00
|
|
|
|
|
|
|
error: statement with no effect
|
2019-01-07 22:33:18 +01:00
|
|
|
--> $DIR/no_effect.rs:84:5
|
2017-02-07 21:05:30 +01:00
|
|
|
|
|
2018-12-27 16:57:55 +01:00
|
|
|
LL | [42, 55];
|
2018-02-10 21:13:17 +01:00
|
|
|
| ^^^^^^^^^
|
2017-02-07 21:05:30 +01:00
|
|
|
|
|
|
|
error: statement with no effect
|
2019-01-07 22:33:18 +01:00
|
|
|
--> $DIR/no_effect.rs:85:5
|
2017-02-07 21:05:30 +01:00
|
|
|
|
|
2018-12-27 16:57:55 +01:00
|
|
|
LL | [42, 55][1];
|
2018-02-10 21:13:17 +01:00
|
|
|
| ^^^^^^^^^^^^
|
2017-02-07 21:05:30 +01:00
|
|
|
|
|
|
|
error: statement with no effect
|
2019-01-07 22:33:18 +01:00
|
|
|
--> $DIR/no_effect.rs:86:5
|
2017-02-07 21:05:30 +01:00
|
|
|
|
|
2018-12-27 16:57:55 +01:00
|
|
|
LL | (42, 55).1;
|
2018-02-10 21:13:17 +01:00
|
|
|
| ^^^^^^^^^^^
|
2017-02-07 21:05:30 +01:00
|
|
|
|
|
|
|
error: statement with no effect
|
2019-01-07 22:33:18 +01:00
|
|
|
--> $DIR/no_effect.rs:87:5
|
2017-02-07 21:05:30 +01:00
|
|
|
|
|
2018-12-27 16:57:55 +01:00
|
|
|
LL | [42; 55];
|
2018-02-10 21:13:17 +01:00
|
|
|
| ^^^^^^^^^
|
|
|
|
|
|
|
|
error: statement with no effect
|
2019-01-07 22:33:18 +01:00
|
|
|
--> $DIR/no_effect.rs:88:5
|
2018-02-10 21:13:17 +01:00
|
|
|
|
|
2018-12-27 16:57:55 +01:00
|
|
|
LL | [42; 55][13];
|
2017-02-07 21:05:30 +01:00
|
|
|
| ^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
error: statement with no effect
|
2019-01-07 22:33:18 +01:00
|
|
|
--> $DIR/no_effect.rs:90:5
|
2017-02-07 21:05:30 +01:00
|
|
|
|
|
2018-12-27 16:57:55 +01:00
|
|
|
LL | || x += 5;
|
2017-02-07 21:05:30 +01:00
|
|
|
| ^^^^^^^^^^
|
|
|
|
|
2017-10-08 00:32:09 +02:00
|
|
|
error: statement with no effect
|
2019-01-07 22:33:18 +01:00
|
|
|
--> $DIR/no_effect.rs:92:5
|
2018-12-27 16:57:55 +01:00
|
|
|
|
|
|
|
|
LL | FooString { s: s };
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^
|
2017-10-08 00:32:09 +02:00
|
|
|
|
2018-12-30 00:18:55 +01:00
|
|
|
error: aborting due to 25 previous errors
|
2018-01-16 17:06:27 +01:00
|
|
|
|