mirror of
https://git.proxmox.com/git/rustc
synced 2025-05-02 23:05:53 +00:00
12 lines
204 B
Rust
12 lines
204 B
Rust
// 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() {}
|