Sign in
fuchsia
/
third_party
/
rust
/
57e8fc56852e7728d7160242bf13c3ab6e066bd8
/
.
/
src
/
tools
/
clippy
/
tests
/
ui
/
crashes
/
needless_lifetimes_impl_trait.rs
blob: bd1fa4a0b1ef297d503753a99513436a4e1ec7f5 [
file
] [
log
] [
blame
]
// run-pass
#![
deny
(
clippy
::
needless_lifetimes
)]
#![
allow
(
dead_code
)]
trait
Foo
{}
struct
Bar
{}
struct
Baz
<
'
a
>
{
bar
:
&
'
a
Bar
,
}
impl
<
'a> Foo for Baz<'
a
>
{}
impl
Bar
{
fn
baz
<
'a>(&'
a
self
)
->
impl
Foo
+
'
a
{
Baz
{
bar
:
self
}
}
}
fn
main
()
{}