2018-10-08 20:36:50 +01:00
|
|
|
error: unused `MustUse` that must be used
|
2018-12-25 08:56:47 -07:00
|
|
|
--> $DIR/unused-result.rs:21:5
|
2018-08-08 14:28:26 +02:00
|
|
|
|
|
2019-03-09 15:03:44 +03:00
|
|
|
LL | foo::<MustUse>();
|
2022-08-16 07:46:33 -07:00
|
|
|
| ^^^^^^^^^^^^^^^^
|
2018-08-08 14:28:26 +02:00
|
|
|
|
|
2020-01-22 23:57:38 +00:00
|
|
|
note: the lint level is defined here
|
2018-12-25 08:56:47 -07:00
|
|
|
--> $DIR/unused-result.rs:2:25
|
2018-08-08 14:28:26 +02:00
|
|
|
|
|
|
|
|
LL | #![deny(unused_results, unused_must_use)]
|
|
|
|
| ^^^^^^^^^^^^^^^
|
2023-03-11 18:28:05 +13:00
|
|
|
help: use `let _ = ...` to ignore the resulting value
|
|
|
|
|
|
|
|
|
LL | let _ = foo::<MustUse>();
|
|
|
|
| +++++++
|
2018-08-08 14:28:26 +02:00
|
|
|
|
2018-10-08 20:36:50 +01:00
|
|
|
error: unused `MustUseMsg` that must be used
|
2018-12-25 08:56:47 -07:00
|
|
|
--> $DIR/unused-result.rs:22:5
|
2018-08-08 14:28:26 +02:00
|
|
|
|
|
2019-03-09 15:03:44 +03:00
|
|
|
LL | foo::<MustUseMsg>();
|
2022-08-16 07:46:33 -07:00
|
|
|
| ^^^^^^^^^^^^^^^^^^^
|
2018-08-08 14:28:26 +02:00
|
|
|
|
|
|
|
|
= note: some message
|
2023-03-11 18:28:05 +13:00
|
|
|
help: use `let _ = ...` to ignore the resulting value
|
|
|
|
|
|
|
|
|
LL | let _ = foo::<MustUseMsg>();
|
|
|
|
| +++++++
|
2018-08-08 14:28:26 +02:00
|
|
|
|
2021-12-11 17:54:53 -08:00
|
|
|
error: unused result of type `isize`
|
2018-12-25 08:56:47 -07:00
|
|
|
--> $DIR/unused-result.rs:34:5
|
2018-08-08 14:28:26 +02:00
|
|
|
|
|
2019-03-09 15:03:44 +03:00
|
|
|
LL | foo::<isize>();
|
2018-08-08 14:28:26 +02:00
|
|
|
| ^^^^^^^^^^^^^^^
|
|
|
|
|
|
2020-01-22 23:57:38 +00:00
|
|
|
note: the lint level is defined here
|
2018-12-25 08:56:47 -07:00
|
|
|
--> $DIR/unused-result.rs:2:9
|
2018-08-08 14:28:26 +02:00
|
|
|
|
|
|
|
|
LL | #![deny(unused_results, unused_must_use)]
|
|
|
|
| ^^^^^^^^^^^^^^
|
|
|
|
|
2018-10-08 20:36:50 +01:00
|
|
|
error: unused `MustUse` that must be used
|
2018-12-25 08:56:47 -07:00
|
|
|
--> $DIR/unused-result.rs:35:5
|
2018-08-08 14:28:26 +02:00
|
|
|
|
|
2019-03-09 15:03:44 +03:00
|
|
|
LL | foo::<MustUse>();
|
2022-08-16 07:46:33 -07:00
|
|
|
| ^^^^^^^^^^^^^^^^
|
2023-03-11 18:28:05 +13:00
|
|
|
|
|
|
|
|
help: use `let _ = ...` to ignore the resulting value
|
|
|
|
|
|
|
|
|
LL | let _ = foo::<MustUse>();
|
|
|
|
| +++++++
|
2018-08-08 14:28:26 +02:00
|
|
|
|
2018-10-08 20:36:50 +01:00
|
|
|
error: unused `MustUseMsg` that must be used
|
2018-12-25 08:56:47 -07:00
|
|
|
--> $DIR/unused-result.rs:36:5
|
2018-08-08 14:28:26 +02:00
|
|
|
|
|
2019-03-09 15:03:44 +03:00
|
|
|
LL | foo::<MustUseMsg>();
|
2022-08-16 07:46:33 -07:00
|
|
|
| ^^^^^^^^^^^^^^^^^^^
|
2018-08-08 14:28:26 +02:00
|
|
|
|
|
|
|
|
= note: some message
|
2023-03-11 18:28:05 +13:00
|
|
|
help: use `let _ = ...` to ignore the resulting value
|
|
|
|
|
|
|
|
|
LL | let _ = foo::<MustUseMsg>();
|
|
|
|
| +++++++
|
2018-08-08 14:28:26 +02:00
|
|
|
|
|
|
|
error: aborting due to 5 previous errors
|
|
|
|
|