tests: Add regression test for recursive enum with Cow and Clone
This commit is contained in:
parent
7db7489f9b
commit
259020c932
1 changed files with 11 additions and 0 deletions
|
@ -0,0 +1,11 @@
|
|||
//@ check-pass
|
||||
|
||||
use std::borrow::Cow;
|
||||
|
||||
#[derive(Clone)]
|
||||
enum Test<'a> {
|
||||
Int(u8),
|
||||
Array(Cow<'a, [Test<'a>]>),
|
||||
}
|
||||
|
||||
fn main() {}
|
Loading…
Add table
Add a link
Reference in a new issue