Skip to content

Commit 259020c

Browse files
committed
tests: Add regression test for recursive enum with Cow and Clone
1 parent 7db7489 commit 259020c

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
//@ check-pass
2+
3+
use std::borrow::Cow;
4+
5+
#[derive(Clone)]
6+
enum Test<'a> {
7+
Int(u8),
8+
Array(Cow<'a, [Test<'a>]>),
9+
}
10+
11+
fn main() {}

0 commit comments

Comments
 (0)