]> git.lizzy.rs Git - rust.git/blob - tests/ui/single-use-lifetime/derive-eq.rs
Auto merge of #105582 - saethlin:instcombine-assert-inhabited, r=cjgillot
[rust.git] / tests / ui / single-use-lifetime / derive-eq.rs
1 // check-pass
2
3 #![deny(single_use_lifetimes)]
4
5 #[derive(PartialEq, Eq)]
6 struct Foo<'a, T> {
7     /// a reference to the underlying secret data that will be derefed
8     pub data: &'a mut T,
9 }
10
11 fn main() {}