|
33 | 33 | //! demonstrates adding and subtracting two `Point`s.
|
34 | 34 | //!
|
35 | 35 | //! ```rust
|
36 |
| -//! #![feature(associated_types)] |
37 |
| -//! |
38 | 36 | //! use std::ops::{Add, Sub};
|
39 | 37 | //!
|
40 | 38 | //! #[derive(Show)]
|
@@ -164,8 +162,6 @@ macro_rules! forward_ref_binop {
|
164 | 162 | /// calling `add`, and therefore, `main` prints `Adding!`.
|
165 | 163 | ///
|
166 | 164 | /// ```rust
|
167 |
| -/// #![feature(associated_types)] |
168 |
| -/// |
169 | 165 | /// use std::ops::Add;
|
170 | 166 | ///
|
171 | 167 | /// #[derive(Copy)]
|
@@ -219,8 +215,6 @@ add_impl! { uint u8 u16 u32 u64 int i8 i16 i32 i64 f32 f64 }
|
219 | 215 | /// calling `sub`, and therefore, `main` prints `Subtracting!`.
|
220 | 216 | ///
|
221 | 217 | /// ```rust
|
222 |
| -/// #![feature(associated_types)] |
223 |
| -/// |
224 | 218 | /// use std::ops::Sub;
|
225 | 219 | ///
|
226 | 220 | /// #[derive(Copy)]
|
@@ -274,8 +268,6 @@ sub_impl! { uint u8 u16 u32 u64 int i8 i16 i32 i64 f32 f64 }
|
274 | 268 | /// calling `mul`, and therefore, `main` prints `Multiplying!`.
|
275 | 269 | ///
|
276 | 270 | /// ```rust
|
277 |
| -/// #![feature(associated_types)] |
278 |
| -/// |
279 | 271 | /// use std::ops::Mul;
|
280 | 272 | ///
|
281 | 273 | /// #[derive(Copy)]
|
@@ -329,8 +321,6 @@ mul_impl! { uint u8 u16 u32 u64 int i8 i16 i32 i64 f32 f64 }
|
329 | 321 | /// calling `div`, and therefore, `main` prints `Dividing!`.
|
330 | 322 | ///
|
331 | 323 | /// ```
|
332 |
| -/// #![feature(associated_types)] |
333 |
| -/// |
334 | 324 | /// use std::ops::Div;
|
335 | 325 | ///
|
336 | 326 | /// #[derive(Copy)]
|
@@ -384,8 +374,6 @@ div_impl! { uint u8 u16 u32 u64 int i8 i16 i32 i64 f32 f64 }
|
384 | 374 | /// calling `rem`, and therefore, `main` prints `Remainder-ing!`.
|
385 | 375 | ///
|
386 | 376 | /// ```
|
387 |
| -/// #![feature(associated_types)] |
388 |
| -/// |
389 | 377 | /// use std::ops::Rem;
|
390 | 378 | ///
|
391 | 379 | /// #[derive(Copy)]
|
@@ -458,8 +446,6 @@ rem_float_impl! { f64, fmod }
|
458 | 446 | /// `neg`, and therefore, `main` prints `Negating!`.
|
459 | 447 | ///
|
460 | 448 | /// ```
|
461 |
| -/// #![feature(associated_types)] |
462 |
| -/// |
463 | 449 | /// use std::ops::Neg;
|
464 | 450 | ///
|
465 | 451 | /// struct Foo;
|
@@ -537,8 +523,6 @@ neg_uint_impl! { u64, i64 }
|
537 | 523 | /// `not`, and therefore, `main` prints `Not-ing!`.
|
538 | 524 | ///
|
539 | 525 | /// ```
|
540 |
| -/// #![feature(associated_types)] |
541 |
| -/// |
542 | 526 | /// use std::ops::Not;
|
543 | 527 | ///
|
544 | 528 | /// struct Foo;
|
@@ -593,8 +577,6 @@ not_impl! { bool uint u8 u16 u32 u64 int i8 i16 i32 i64 }
|
593 | 577 | /// calling `bitand`, and therefore, `main` prints `Bitwise And-ing!`.
|
594 | 578 | ///
|
595 | 579 | /// ```
|
596 |
| -/// #![feature(associated_types)] |
597 |
| -/// |
598 | 580 | /// use std::ops::BitAnd;
|
599 | 581 | ///
|
600 | 582 | /// #[derive(Copy)]
|
@@ -648,8 +630,6 @@ bitand_impl! { bool uint u8 u16 u32 u64 int i8 i16 i32 i64 }
|
648 | 630 | /// calling `bitor`, and therefore, `main` prints `Bitwise Or-ing!`.
|
649 | 631 | ///
|
650 | 632 | /// ```
|
651 |
| -/// #![feature(associated_types)] |
652 |
| -/// |
653 | 633 | /// use std::ops::BitOr;
|
654 | 634 | ///
|
655 | 635 | /// #[derive(Copy)]
|
@@ -703,8 +683,6 @@ bitor_impl! { bool uint u8 u16 u32 u64 int i8 i16 i32 i64 }
|
703 | 683 | /// calling `bitxor`, and therefore, `main` prints `Bitwise Xor-ing!`.
|
704 | 684 | ///
|
705 | 685 | /// ```
|
706 |
| -/// #![feature(associated_types)] |
707 |
| -/// |
708 | 686 | /// use std::ops::BitXor;
|
709 | 687 | ///
|
710 | 688 | /// #[derive(Copy)]
|
@@ -758,8 +736,6 @@ bitxor_impl! { bool uint u8 u16 u32 u64 int i8 i16 i32 i64 }
|
758 | 736 | /// calling `shl`, and therefore, `main` prints `Shifting left!`.
|
759 | 737 | ///
|
760 | 738 | /// ```
|
761 |
| -/// #![feature(associated_types)] |
762 |
| -/// |
763 | 739 | /// use std::ops::Shl;
|
764 | 740 | ///
|
765 | 741 | /// #[derive(Copy)]
|
@@ -831,8 +807,6 @@ shl_impl_all! { u8 u16 u32 u64 usize i8 i16 i32 i64 isize }
|
831 | 807 | /// calling `shr`, and therefore, `main` prints `Shifting right!`.
|
832 | 808 | ///
|
833 | 809 | /// ```
|
834 |
| -/// #![feature(associated_types)] |
835 |
| -/// |
836 | 810 | /// use std::ops::Shr;
|
837 | 811 | ///
|
838 | 812 | /// #[derive(Copy)]
|
@@ -1094,8 +1068,6 @@ impl<Idx: fmt::Show> fmt::Show for RangeTo<Idx> {
|
1094 | 1068 | /// struct.
|
1095 | 1069 | ///
|
1096 | 1070 | /// ```
|
1097 |
| -/// #![feature(associated_types)] |
1098 |
| -/// |
1099 | 1071 | /// use std::ops::Deref;
|
1100 | 1072 | ///
|
1101 | 1073 | /// struct DerefExample<T> {
|
@@ -1149,8 +1121,6 @@ impl<'a, T: ?Sized> Deref for &'a mut T {
|
1149 | 1121 | /// struct.
|
1150 | 1122 | ///
|
1151 | 1123 | /// ```
|
1152 |
| -/// #![feature(associated_types)] |
1153 |
| -/// |
1154 | 1124 | /// use std::ops::{Deref, DerefMut};
|
1155 | 1125 | ///
|
1156 | 1126 | /// struct DerefMutExample<T> {
|
|
0 commit comments