Skip to content

Commit

Permalink
tests: Add regression test for recursive enum with Cow and Clone
Browse files Browse the repository at this point in the history
  • Loading branch information
Enselic committed Nov 25, 2024
1 parent 7db7489 commit 259020c
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 259020c

Please sign in to comment.