Sign in
fuchsia
/
third_party
/
rust
/
11a0b968c287c81680387ffcf112328d52d7e815
/
.
/
src
/
test
/
ui
/
single-use-lifetime
/
zero-uses-in-impl.rs
blob: 54803e1d2be4248dd652275b93f01b1d58addddb [
file
] [
log
] [
blame
]
// Test that we DO warn when lifetime name is not used at all.
#![
deny
(
unused_lifetimes
)]
#![
allow
(
dead_code
,
unused_variables
)]
struct
Foo
{}
impl
<
'a> Foo {} //~ ERROR `'
a
`
never used
fn
main
()
{}