We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a9fb00b commit 5f72f9dCopy full SHA for 5f72f9d
tests/ui/traits/sized-coniductive.rs
@@ -0,0 +1,14 @@
1
+//@ check-pass
2
+// https://github.com/rust-lang/rust/issues/129541
3
+
4
+#[derive(Clone)]
5
+struct Test {
6
+ field: std::borrow::Cow<'static, [Self]>,
7
+}
8
9
10
+struct Hello {
11
+ a: <[Hello] as std::borrow::ToOwned>::Owned,
12
13
14
+fn main(){}
0 commit comments