1
Fork 0

tests: Add regression test for recursive enum with Cow and Clone

This commit is contained in:
Martin Nordholts 2024-11-25 20:30:28 +01:00
commit 259020c932

View file

@ -0,0 +1,11 @@
//@ check-pass
use std::borrow::Cow;
#[derive(Clone)]
enum Test<'a> {
Int(u8),
Array(Cow<'a, [Test<'a>]>),
}
fn main() {}