Skip to content

Commit

Permalink
Unrolled build for rust-lang#133473
Browse files Browse the repository at this point in the history
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
  • Loading branch information
rust-timer authored Nov 26, 2024
2 parents f2abf82 + 259020c commit 43f5ef9
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions tests/ui/traits/solver-cycles/100347-recursive-enum-cow-slice.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
//@ check-pass

use std::borrow::Cow;

#[derive(Clone)]
enum Test<'a> {
Int(u8),
Array(Cow<'a, [Test<'a>]>),
}

fn main() {}

0 comments on commit 43f5ef9

Please sign in to comment.