mirror of
https://github.com/rust-lang/rust.git
synced 2025-02-09 13:33:43 +00:00
14 lines
179 B
Rust
14 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() {}
|