1 // Copyright 2014-2018 The Rust Project Developers. See the COPYRIGHT
2 // file at the top-level directory of this distribution.
4 // Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
5 // http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
6 // <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
7 // option. This file may not be copied, modified, or distributed
8 // except according to those terms.
10 #![warn(clippy::wrong_self_convention)]
11 #![warn(clippy::wrong_pub_self_convention)]
12 #![allow(dead_code, clippy::trivially_copy_pass_by_ref)]
16 #[derive(Clone, Copy)]
28 pub fn as_i64(self) {}
29 pub fn into_i64(self) {}
30 pub fn is_i64(self) {}
31 pub fn to_i64(self) {}
32 pub fn from_i64(self) {}
33 // check whether the lint can be allowed at the function level
34 #[allow(clippy::wrong_self_convention)]
35 pub fn from_cake(self) {}
37 fn as_x<F: AsRef<Self>>(_: F) {}
38 fn as_y<F: AsRef<Foo>>(_: F) {}
54 pub fn as_i64(self) {}
55 pub fn into_i64(&self) {}
56 pub fn is_i64(self) {}
57 pub fn to_i64(self) {}
58 pub fn from_i64(self) {}
60 // test for false positives
66 fn to_mut(&mut self) {}