Skip to content

Commit

Permalink
Regression test for #129541
Browse files Browse the repository at this point in the history
  • Loading branch information
zachs18 committed Sep 11, 2024
1 parent a9fb00b commit 5f72f9d
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 5f72f9d

Please sign in to comment.