Sign in
android
/
toolchain
/
rustc
/
d2dbbcd40813d506244f1255bc2c84088a0197e1
/
.
/
src
/
test
/
ui
/
single-use-lifetime
/
derive-eq.rs
blob: e5bdfc55dd670d318928ee4a7768d9b188455b81 [
file
] [
log
] [
blame
]
// check-pass
#![
deny
(
single_use_lifetimes
)]
#[
derive
(
PartialEq
,
Eq
)]
struct
Foo
<
'
a
,
T
>
{
/// a reference to the underlying secret data that will be derefed
pub
data
:
&
'
a
mut
T
,
}
fn
main
()
{}