We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 2316f4d + fb78365 commit f99b4adCopy full SHA for f99b4ad
tests/ui/wrong_self_convention2.rs
@@ -68,3 +68,22 @@ mod issue7179 {
68
fn as_byte_slice(slice: &[Self]) -> &[u8];
69
}
70
71
+
72
+mod issue3414 {
73
+ struct CellLikeThing<T>(T);
74
75
+ impl<T> CellLikeThing<T> {
76
+ // don't trigger
77
+ fn into_inner(this: Self) -> T {
78
+ this.0
79
+ }
80
81
82
+ impl<T> std::ops::Deref for CellLikeThing<T> {
83
+ type Target = T;
84
85
+ fn deref(&self) -> &T {
86
+ &self.0
87
88
89
+}
0 commit comments