+// run-rustfix
+
#![warn(clippy::needless_arbitrary_self_type)]
+#![allow(unused_mut, clippy::needless_lifetimes)]
pub enum ValType {
A,
unimplemented!();
}
+ pub fn ref_good(&self) {
+ unimplemented!();
+ }
+
pub fn ref_bad_with_lifetime<'a>(self: &'a Self) {
unimplemented!();
}
- pub fn ref_good(&self) {
+ pub fn ref_good_with_lifetime<'a>(&'a self) {
unimplemented!();
}
unimplemented!();
}
+ pub fn mut_ref_good(&mut self) {
+ unimplemented!();
+ }
+
pub fn mut_ref_bad_with_lifetime<'a>(self: &'a mut Self) {
unimplemented!();
}
- pub fn mut_ref_good(&mut self) {
+ pub fn mut_ref_good_with_lifetime<'a>(&'a mut self) {
unimplemented!();
}
- pub fn mut_ref_mut_bad(mut self: &mut Self) {
+ pub fn mut_ref_mut_good(mut self: &mut Self) {
unimplemented!();
}