blob: 5f63b166f988b04ac00a12cc91764866499ab6af (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
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(){}
|