mirror of
https://github.com/rust-lang/rust.git
synced 2024-10-30 14:01:51 +00:00
Regression test for #129541
This commit is contained in:
parent
a9fb00bfa4
commit
5f72f9dfc3
14
tests/ui/traits/sized-coniductive.rs
Normal file
14
tests/ui/traits/sized-coniductive.rs
Normal file
@ -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(){}
|
Loading…
Reference in New Issue
Block a user