Skip to content

Commit e7076fd

Browse files
authored
Unrolled build for rust-lang#129542
Rollup merge of rust-lang#129542 - zachs18:cow-self-test, r=compiler-errors Add regression test for rust-lang#129541 (maybe?) closes rust-lang#129541 by adding a test that the code in question continues to compile.
2 parents 1a5a224 + 5f72f9d commit e7076fd

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)