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 73b2b74 commit 501504aCopy full SHA for 501504a
library/core/src/option.rs
@@ -2147,6 +2147,8 @@ const fn expect_failed(msg: &str) -> ! {
2147
#[rustc_const_unstable(feature = "const_try", issue = "74935")]
2148
impl<T> const Clone for Option<T>
2149
where
2150
+ // FIXME(const_hack): the T: ~const Destruct should be inferred from the Self: ~const Destruct in clone_from.
2151
+ // See https://github.com/rust-lang/rust/issues/144207
2152
T: ~const Clone + ~const Destruct,
2153
{
2154
#[inline]
0 commit comments