]> git.lizzy.rs Git - rust.git/commitdiff
`DerefMut` should be `for Sized?`
authorChase Southwood <chase.southwood@gmail.com>
Thu, 4 Dec 2014 09:10:58 +0000 (03:10 -0600)
committerChase Southwood <chase.southwood@gmail.com>
Thu, 4 Dec 2014 09:10:58 +0000 (03:10 -0600)
src/libcore/ops.rs

index d85481098e4ffaabfbe6d0145b5d59f5d9522e6e..7de89e2bc508a5e4328d4072c285b0699bda6909 100644 (file)
@@ -787,7 +787,7 @@ fn deref(&self) -> &T { *self }
 /// }
 /// ```
 #[lang="deref_mut"]
-pub trait DerefMut<Sized? Result>: Deref<Result> {
+pub trait DerefMut<Sized? Result> for Sized? : Deref<Result> {
     /// The method called to mutably dereference a value
     fn deref_mut<'a>(&'a mut self) -> &'a mut Result;
 }