mirror of
https://github.com/rust-lang/rust-clippy
synced 2024-11-10 07:04:18 +00:00
14 lines
217 B
Rust
14 lines
217 B
Rust
#![deny(clippy::useless_asref)]
|
|
#![allow(clippy::needless_lifetimes)]
|
|
|
|
trait Trait {
|
|
fn as_ptr(&self);
|
|
}
|
|
|
|
impl<'a> Trait for &'a [u8] {
|
|
fn as_ptr(&self) {
|
|
self.as_ref().as_ptr();
|
|
}
|
|
}
|
|
|
|
fn main() {}
|