Skip to content

Commit

Permalink
Rollup merge of #133473 - Enselic:cow, r=nnethercote
Browse files Browse the repository at this point in the history
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 #100347
  • Loading branch information
GuillaumeGomez authored Nov 26, 2024
2 parents 0d9a57d + 259020c commit 52fcafe
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 52fcafe

Please sign in to comment.