3 #![warn(clippy::needless_arbitrary_self_type)]
4 #![allow(unused_mut, clippy::needless_lifetimes)]
12 pub fn bad(self: Self) {
20 pub fn mut_bad(mut self: Self) {
24 pub fn mut_good(mut self) {
28 pub fn ref_bad(self: &Self) {
32 pub fn ref_good(&self) {
36 pub fn ref_bad_with_lifetime<'a>(self: &'a Self) {
40 pub fn ref_good_with_lifetime<'a>(&'a self) {
44 pub fn mut_ref_bad(self: &mut Self) {
48 pub fn mut_ref_good(&mut self) {
52 pub fn mut_ref_bad_with_lifetime<'a>(self: &'a mut Self) {
56 pub fn mut_ref_good_with_lifetime<'a>(&'a mut self) {
60 pub fn mut_ref_mut_good(mut self: &mut Self) {
64 pub fn mut_ref_mut_ref_good(self: &&mut &mut Self) {