2018-12-17 14:33:50 -06:00
|
|
|
#![deny(clippy::useless_asref)]
|
2024-10-03 09:32:51 -05:00
|
|
|
#![allow(clippy::needless_lifetimes)]
|
2018-12-17 14:33:50 -06:00
|
|
|
|
|
|
|
trait Trait {
|
|
|
|
fn as_ptr(&self);
|
|
|
|
}
|
|
|
|
|
|
|
|
impl<'a> Trait for &'a [u8] {
|
|
|
|
fn as_ptr(&self) {
|
|
|
|
self.as_ref().as_ptr();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
fn main() {}
|