2
0
Fork 0
mirror of https://github.com/rust-lang/rust-clippy synced 2025-03-01 05:47:25 +00:00
rust-clippy/tests/ui/useful_asref.rs
2019-01-08 21:46:39 +01:00

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() {}