diff --git a/tests/ui/traits/cow-self-field-sized.rs b/tests/ui/traits/cow-self-field-sized.rs new file mode 100644 index 0000000000000..061ba99323540 --- /dev/null +++ b/tests/ui/traits/cow-self-field-sized.rs @@ -0,0 +1,9 @@ +//@ check-pass +// https://github.com/rust-lang/rust/issues/129541 + +#[derive(Clone)] +struct Test { + field: std::borrow::Cow<'static, [Self]>, +} + +fn main(){}