2020-07-25 17:49:46 +00:00
|
|
|
warning: use of deprecated struct `MustUseDeprecated`
|
2019-01-04 11:51:29 +00:00
|
|
|
--> $DIR/cfg-attr-multi-true.rs:12:6
|
2018-09-10 22:06:49 +00:00
|
|
|
|
|
2019-03-09 12:03:44 +00:00
|
|
|
LL | impl MustUseDeprecated {
|
2018-09-10 22:06:49 +00:00
|
|
|
| ^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
2019-07-16 20:17:38 +00:00
|
|
|
= note: `#[warn(deprecated)]` on by default
|
2018-09-10 22:06:49 +00:00
|
|
|
|
2020-07-25 17:49:46 +00:00
|
|
|
warning: use of deprecated struct `MustUseDeprecated`
|
2019-01-04 11:51:29 +00:00
|
|
|
--> $DIR/cfg-attr-multi-true.rs:19:5
|
2018-09-10 22:06:49 +00:00
|
|
|
|
|
2019-03-09 12:03:44 +00:00
|
|
|
LL | MustUseDeprecated::new();
|
2021-03-13 16:14:18 +00:00
|
|
|
| ^^^^^^^^^^^^^^^^^
|
2018-09-10 22:06:49 +00:00
|
|
|
|
2020-07-25 17:49:46 +00:00
|
|
|
warning: use of deprecated struct `MustUseDeprecated`
|
2019-01-04 11:51:29 +00:00
|
|
|
--> $DIR/cfg-attr-multi-true.rs:13:17
|
2018-09-10 22:06:49 +00:00
|
|
|
|
|
2019-03-09 12:03:44 +00:00
|
|
|
LL | fn new() -> MustUseDeprecated {
|
2018-09-10 22:06:49 +00:00
|
|
|
| ^^^^^^^^^^^^^^^^^
|
|
|
|
|
2020-07-25 17:49:46 +00:00
|
|
|
warning: use of deprecated struct `MustUseDeprecated`
|
2019-01-04 11:51:29 +00:00
|
|
|
--> $DIR/cfg-attr-multi-true.rs:14:9
|
2018-09-10 22:06:49 +00:00
|
|
|
|
|
2019-03-09 12:03:44 +00:00
|
|
|
LL | MustUseDeprecated {}
|
2018-09-10 22:06:49 +00:00
|
|
|
| ^^^^^^^^^^^^^^^^^
|
|
|
|
|
2018-10-08 19:36:50 +00:00
|
|
|
warning: unused `MustUseDeprecated` that must be used
|
2019-01-04 11:51:29 +00:00
|
|
|
--> $DIR/cfg-attr-multi-true.rs:19:5
|
2018-09-10 22:06:49 +00:00
|
|
|
|
|
2019-03-09 12:03:44 +00:00
|
|
|
LL | MustUseDeprecated::new();
|
2022-08-16 14:46:33 +00:00
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^
|
2018-09-10 22:06:49 +00:00
|
|
|
|
|
2020-01-22 23:57:38 +00:00
|
|
|
note: the lint level is defined here
|
2018-09-10 22:06:49 +00:00
|
|
|
--> $DIR/cfg-attr-multi-true.rs:7:9
|
|
|
|
|
|
|
|
|
LL | #![warn(unused_must_use)]
|
|
|
|
| ^^^^^^^^^^^^^^^
|
2023-03-11 05:28:05 +00:00
|
|
|
help: use `let _ = ...` to ignore the resulting value
|
|
|
|
|
|
|
|
|
LL | let _ = MustUseDeprecated::new();
|
|
|
|
| +++++++
|
2018-09-10 22:06:49 +00:00
|
|
|
|
2020-03-11 15:30:09 +00:00
|
|
|
warning: 5 warnings emitted
|
|
|
|
|