We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 51a2e2f commit 044ed10Copy full SHA for 044ed10
src/libcore/cell.rs
@@ -229,7 +229,7 @@ impl<T:Copy> Clone for Cell<T> {
229
}
230
231
#[stable(feature = "rust1", since = "1.0.0")]
232
-impl<T:Default + Copy> Default for Cell<T> {
+impl<T:Default> Default for Cell<T> {
233
/// Creates a `Cell<T>`, with the `Default` value for T.
234
#[inline]
235
fn default() -> Cell<T> {
@@ -285,7 +285,7 @@ impl<T:Ord + Copy> Ord for Cell<T> {
285
286
287
#[stable(feature = "cell_from", since = "1.12.0")]
288
-impl<T: Copy> From<T> for Cell<T> {
+impl<T> From<T> for Cell<T> {
289
fn from(t: T) -> Cell<T> {
290
Cell::new(t)
291
0 commit comments