1 error: missing `#[must_use]` attribute on a method returning `Self`
2 --> $DIR/return_self_not_must_use.rs:7:5
4 LL | fn what(&self) -> Self;
5 | ^^^^^^^^^^^^^^^^^^^^^^^
7 = note: `-D clippy::return-self-not-must-use` implied by `-D warnings`
9 error: missing `#[must_use]` attribute on a method returning `Self`
10 --> $DIR/return_self_not_must_use.rs:17:5
12 LL | / pub fn foo(&self) -> Self {
17 error: missing `#[must_use]` attribute on a method returning `Self`
18 --> $DIR/return_self_not_must_use.rs:20:5
20 LL | / pub fn bar(self) -> Self {
25 error: aborting due to 3 previous errors