Sign in
android
/
toolchain
/
rustc
/
refs/heads/main
/
.
/
tests
/
ui
/
single-use-lifetime
/
derive-eq.rs
blob: e9a3e91554ad6ac550addb88ada9a89db3441a01 [
file
] [
log
] [
blame
] [
edit
]
//@ 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
()
{}