mirror of
https://github.com/rust-lang/rust-clippy
synced 2024-11-14 08:57:30 +00:00
add 3414 test
This commit is contained in:
parent
2316f4da83
commit
fb78365332
1 changed files with 19 additions and 0 deletions
|
@ -68,3 +68,22 @@ mod issue7179 {
|
|||
fn as_byte_slice(slice: &[Self]) -> &[u8];
|
||||
}
|
||||
}
|
||||
|
||||
mod issue3414 {
|
||||
struct CellLikeThing<T>(T);
|
||||
|
||||
impl<T> CellLikeThing<T> {
|
||||
// don't trigger
|
||||
fn into_inner(this: Self) -> T {
|
||||
this.0
|
||||
}
|
||||
}
|
||||
|
||||
impl<T> std::ops::Deref for CellLikeThing<T> {
|
||||
type Target = T;
|
||||
|
||||
fn deref(&self) -> &T {
|
||||
&self.0
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue