mirror of
https://github.com/rust-lang/rust-clippy
synced 2024-12-05 02:50:32 +00:00
38d4ac7cea
Discussion previously happened in https://github.com/rust-lang/rust/pull/43498
13 lines
179 B
Rust
13 lines
179 B
Rust
#![deny(clippy::useless_asref)]
|
|
|
|
trait Trait {
|
|
fn as_ptr(&self);
|
|
}
|
|
|
|
impl<'a> Trait for &'a [u8] {
|
|
fn as_ptr(&self) {
|
|
self.as_ref().as_ptr();
|
|
}
|
|
}
|
|
|
|
fn main() {}
|