Skip to content

Commit 5f72f9d

Browse files
committed
Regression test for #129541
1 parent a9fb00b commit 5f72f9d

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

tests/ui/traits/sized-coniductive.rs

+14
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
//@ check-pass
2+
// https://github.com/rust-lang/rust/issues/129541
3+
4+
#[derive(Clone)]
5+
struct Test {
6+
field: std::borrow::Cow<'static, [Self]>,
7+
}
8+
9+
#[derive(Clone)]
10+
struct Hello {
11+
a: <[Hello] as std::borrow::ToOwned>::Owned,
12+
}
13+
14+
fn main(){}

0 commit comments

Comments
 (0)