Skip to content

Commit 52fcafe

Browse files
Rollup merge of rust-lang#133473 - Enselic:cow, r=nnethercote
tests: Add regression test for recursive enum with Cow and Clone I could not find any existing test. `git grep "(Cow<'[^>]\+\["` gave no hits before this tests. Closes rust-lang#100347
2 parents 0d9a57d + 259020c commit 52fcafe

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)