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