Skip to content
This repository was archived by the owner on May 28, 2025. It is now read-only.
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit d974717

Browse files
authoredNov 26, 2024
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 8160668 + 259020c commit d974717

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed
 
Lines changed: 11 additions & 0 deletions
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)
This repository has been archived.