]> git.lizzy.rs Git - rust.git/blobdiff - src/libstd/bitflags.rs
use assoc types in unop traits
[rust.git] / src / libstd / bitflags.rs
index a9c74823dde9e99d3fbc32fb91ca72b0bf761bb1..16bc6b16598e046c90949dcfde7e6b5d5692a943 100644 (file)
@@ -249,7 +249,9 @@ fn sub(self, other: $BitFlags) -> $BitFlags {
             }
         }
 
-        impl ::std::ops::Not<$BitFlags> for $BitFlags {
+        impl ::std::ops::Not for $BitFlags {
+            type Output = $BitFlags;
+
             /// Returns the complement of this set of flags.
             #[inline]
             fn not(self) -> $BitFlags {