Files
rust/tests/ui/derives/debug/derive-debug-generic-with-lifetime.rs
T
2026-04-22 20:22:40 +00:00

11 lines
219 B
Rust

//! regression test for <https://github.com/rust-lang/rust/issues/29030>
//@ check-pass
#![allow(dead_code)]
#[derive(Debug)]
struct Message<'a, P: 'a = &'a [u8]> {
header: &'a [u8],
payload: P,
}
fn main() {}