Regression test for #129541

This commit is contained in:
Zachary S 2024-09-10 23:59:24 -05:00
parent a9fb00bfa4
commit 5f72f9dfc3

View File

@ -0,0 +1,14 @@
//@ check-pass
// https://github.com/rust-lang/rust/issues/129541
#[derive(Clone)]
struct Test {
field: std::borrow::Cow<'static, [Self]>,
}
#[derive(Clone)]
struct Hello {
a: <[Hello] as std::borrow::ToOwned>::Owned,
}
fn main(){}