1 #![feature(tool_lints)]
4 #![warn(clippy::wrong_self_convention)]
5 #![warn(clippy::wrong_pub_self_convention)]
6 #![allow(dead_code, clippy::trivially_copy_pass_by_ref)]
10 #[derive(Clone, Copy)]
23 pub fn as_i64(self) {}
24 pub fn into_i64(self) {}
25 pub fn is_i64(self) {}
26 pub fn to_i64(self) {}
27 pub fn from_i64(self) {}
28 // check whether the lint can be allowed at the function level
29 #[allow(clippy::wrong_self_convention)]
30 pub fn from_cake(self) {}
32 fn as_x<F: AsRef<Self>>(_: F) { }
33 fn as_y<F: AsRef<Foo>>(_: F) { }
50 pub fn as_i64(self) {}
51 pub fn into_i64(&self) {}
52 pub fn is_i64(self) {}
53 pub fn to_i64(self) {}
54 pub fn from_i64(self) {}
56 // test for false positives