|
71 | 71 | //~^^ WARN this was previously accepted by the compiler
|
72 | 72 | #![must_use]
|
73 | 73 | //~^ WARN `#[must_use]` has no effect
|
| 74 | +//~| HELP remove the attribute |
74 | 75 | // see issue-43106-gating-of-stable.rs
|
75 | 76 | // see issue-43106-gating-of-unstable.rs
|
76 | 77 | // see issue-43106-gating-of-deprecated.rs
|
@@ -599,16 +600,20 @@ mod deprecated {
|
599 | 600 | }
|
600 | 601 |
|
601 | 602 | #[must_use] //~ WARN `#[must_use]` has no effect
|
| 603 | +//~^ HELP remove the attribute |
602 | 604 | mod must_use {
|
603 | 605 | mod inner { #![must_use] } //~ WARN `#[must_use]` has no effect
|
| 606 | + //~^ HELP remove the attribute |
604 | 607 |
|
605 | 608 | #[must_use] fn f() { }
|
606 | 609 |
|
607 | 610 | #[must_use] struct S;
|
608 | 611 |
|
609 | 612 | #[must_use] type T = S; //~ WARN `#[must_use]` has no effect
|
| 613 | + //~^ HELP remove the attribute |
610 | 614 |
|
611 | 615 | #[must_use] impl S { } //~ WARN `#[must_use]` has no effect
|
| 616 | + //~^ HELP remove the attribute |
612 | 617 | }
|
613 | 618 |
|
614 | 619 | #[windows_subsystem = "windows"]
|
|
0 commit comments