Sign in
fuchsia
/
third_party
/
rust
/
eda6dc928323fcd0ac1b51cea1aa79ab17e8519d
/
.
/
src
/
tools
/
clippy
/
tests
/
ui
/
useful_asref.rs
blob: a37c2785bde2ac4f868937a02433a47d7b59a07c [
file
] [
log
] [
blame
]
//@ check-pass
#![
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
()
{}