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.
TrivialClone
1 parent bc70836 commit 08b0ee4Copy full SHA for 08b0ee4
core/src/clone.rs
@@ -269,6 +269,7 @@ pub const trait Clone: Sized {
269
issue = "none"
270
)]
271
#[rustc_const_unstable(feature = "const_clone", issue = "142757")]
272
+#[lang = "trivial_clone"]
273
// SAFETY:
274
// It is sound to specialize on this because the `clone` implementation cannot be
275
// lifetime-dependent. Therefore, if `TrivialClone` is implemented for any lifetime,
0 commit comments