]>
git.proxmox.com Git - rustc.git/blob - src/test/ui/single-use-lifetime/one-use-in-struct.rs
1 // Test that we do not warn for named lifetimes in structs,
2 // even when they are only used once (since to not use a named
3 // lifetime is illegal!)
5 // build-pass (FIXME(62277): could be check-pass?)
7 #![deny(single_use_lifetimes)]
9 #![allow(unused_variables)]
21 // `Derive`d impls shouldn't trigger a warning, either (Issue #53738).