summaryrefslogtreecommitdiffstats
path: root/tests/ui/single-use-lifetime/derive-eq.rs
blob: e5bdfc55dd670d318928ee4a7768d9b188455b81 (plain)
1
2
3
4
5
6
7
8
9
10
11
// 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() {}