Rollup merge of #61824 - rust-lang:single_derive, r=eddyb
in which we decline to lint single-use lifetimes in `derive`d impls Resolves #53738. r? @eddyb
This commit is contained in:
commit
eb188f1317
2 changed files with 18 additions and 0 deletions
|
|
@ -18,4 +18,11 @@ enum Bar<'f> {
|
|||
|
||||
trait Baz<'f> { }
|
||||
|
||||
// `Derive`d impls shouldn't trigger a warning, either (Issue #53738).
|
||||
|
||||
#[derive(Debug)]
|
||||
struct Quux<'a> {
|
||||
priors: &'a u32,
|
||||
}
|
||||
|
||||
fn main() { }
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue