Skip to content

Commit

Permalink
Rollup merge of #129542 - zachs18:cow-self-test, r=compiler-errors
Browse files Browse the repository at this point in the history
Add regression test for #129541

(maybe?) closes #129541 by adding a test that the code in question continues to compile.
  • Loading branch information
GuillaumeGomez authored Sep 20, 2024
2 parents 2b11f26 + 5f72f9d commit 5c60185
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 5c60185

Please sign in to comment.