Skip to content

Commit 501504a

Browse files
committed
Add FIXME for the bound
1 parent 73b2b74 commit 501504a

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

library/core/src/option.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2147,6 +2147,8 @@ const fn expect_failed(msg: &str) -> ! {
21472147
#[rustc_const_unstable(feature = "const_try", issue = "74935")]
21482148
impl<T> const Clone for Option<T>
21492149
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
21502152
T: ~const Clone + ~const Destruct,
21512153
{
21522154
#[inline]

0 commit comments

Comments
 (0)