Rollup merge of #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 #100347
This commit is contained in:
commit
52fcafe872
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