mirror of
https://github.com/rust-lang/rust.git
synced 2025-01-24 21:53:56 +00:00
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
@ -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…
Reference in New Issue
Block a user