Sign in
rust
/
rust-clippy
/
62a82b361c02838afdf607d461726e0407f1a5ec
/
.
/
tests
/
ui
/
useful_asref.rs
blob: a9f0170a79cd90d27b1ace750d7ea945d50e2d39 [
file
] [
log
] [
blame
]
#![
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
()
{}