Skip to content

Commit

Permalink
Unrolled build for rust-lang#129542
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
rust-timer committed Sep 20, 2024
2 parents 1a5a224 + 5f72f9d commit e7076fd
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions tests/ui/traits/sized-coniductive.rs
Original file line number Diff line number Diff line change
@@ -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(){}

0 comments on commit e7076fd

Please sign in to comment.