mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-22 23:04:33 +00:00
15 lines
243 B
Rust
15 lines
243 B
Rust
//@ 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(){}
|