We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
&[T]
1 parent a8b5039 commit d1c226eCopy full SHA for d1c226e
core/src/iter/traits/collect.rs
@@ -94,6 +94,16 @@
94
/// ```
95
#[stable(feature = "rust1", since = "1.0.0")]
96
#[rustc_on_unimplemented(
97
+ on(
98
+ _Self = "&[{A}]",
99
+ message = "a slice of type `{Self}` cannot be built since we need to store the elements somewhere",
100
+ label = "try explicitly collecting into a `Vec<{A}>`",
101
+ ),
102
103
+ all(A = "{integer}", any(_Self = "&[{integral}]",)),
104
105
106
107
on(
108
_Self = "[{A}]",
109
message = "a slice of type `{Self}` cannot be built since `{Self}` has no definite size",
0 commit comments