|
25 | 25 | //! demonstrates adding and subtracting two `Point`s.
|
26 | 26 | //!
|
27 | 27 | //! ```rust
|
28 |
| -//! #![feature(associated_types)] |
29 |
| -//! |
30 | 28 | //! use std::ops::{Add, Sub};
|
31 | 29 | //!
|
32 | 30 | //! #[derive(Show)]
|
@@ -104,8 +102,6 @@ pub trait Drop {
|
104 | 102 | /// calling `add`, and therefore, `main` prints `Adding!`.
|
105 | 103 | ///
|
106 | 104 | /// ```rust
|
107 |
| -/// #![feature(associated_types)] |
108 |
| -/// |
109 | 105 | /// use std::ops::Add;
|
110 | 106 | ///
|
111 | 107 | /// #[derive(Copy)]
|
@@ -157,8 +153,6 @@ add_impl! { uint u8 u16 u32 u64 int i8 i16 i32 i64 f32 f64 }
|
157 | 153 | /// calling `sub`, and therefore, `main` prints `Subtracting!`.
|
158 | 154 | ///
|
159 | 155 | /// ```rust
|
160 |
| -/// #![feature(associated_types)] |
161 |
| -/// |
162 | 156 | /// use std::ops::Sub;
|
163 | 157 | ///
|
164 | 158 | /// #[derive(Copy)]
|
@@ -210,8 +204,6 @@ sub_impl! { uint u8 u16 u32 u64 int i8 i16 i32 i64 f32 f64 }
|
210 | 204 | /// calling `mul`, and therefore, `main` prints `Multiplying!`.
|
211 | 205 | ///
|
212 | 206 | /// ```rust
|
213 |
| -/// #![feature(associated_types)] |
214 |
| -/// |
215 | 207 | /// use std::ops::Mul;
|
216 | 208 | ///
|
217 | 209 | /// #[derive(Copy)]
|
@@ -263,8 +255,6 @@ mul_impl! { uint u8 u16 u32 u64 int i8 i16 i32 i64 f32 f64 }
|
263 | 255 | /// calling `div`, and therefore, `main` prints `Dividing!`.
|
264 | 256 | ///
|
265 | 257 | /// ```
|
266 |
| -/// #![feature(associated_types)] |
267 |
| -/// |
268 | 258 | /// use std::ops::Div;
|
269 | 259 | ///
|
270 | 260 | /// #[derive(Copy)]
|
@@ -316,8 +306,6 @@ div_impl! { uint u8 u16 u32 u64 int i8 i16 i32 i64 f32 f64 }
|
316 | 306 | /// calling `rem`, and therefore, `main` prints `Remainder-ing!`.
|
317 | 307 | ///
|
318 | 308 | /// ```
|
319 |
| -/// #![feature(associated_types)] |
320 |
| -/// |
321 | 309 | /// use std::ops::Rem;
|
322 | 310 | ///
|
323 | 311 | /// #[derive(Copy)]
|
@@ -386,8 +374,6 @@ rem_float_impl! { f64, fmod }
|
386 | 374 | /// `neg`, and therefore, `main` prints `Negating!`.
|
387 | 375 | ///
|
388 | 376 | /// ```
|
389 |
| -/// #![feature(associated_types)] |
390 |
| -/// |
391 | 377 | /// use std::ops::Neg;
|
392 | 378 | ///
|
393 | 379 | /// struct Foo;
|
@@ -461,8 +447,6 @@ neg_uint_impl! { u64, i64 }
|
461 | 447 | /// `not`, and therefore, `main` prints `Not-ing!`.
|
462 | 448 | ///
|
463 | 449 | /// ```
|
464 |
| -/// #![feature(associated_types)] |
465 |
| -/// |
466 | 450 | /// use std::ops::Not;
|
467 | 451 | ///
|
468 | 452 | /// struct Foo;
|
@@ -515,8 +499,6 @@ not_impl! { bool uint u8 u16 u32 u64 int i8 i16 i32 i64 }
|
515 | 499 | /// calling `bitand`, and therefore, `main` prints `Bitwise And-ing!`.
|
516 | 500 | ///
|
517 | 501 | /// ```
|
518 |
| -/// #![feature(associated_types)] |
519 |
| -/// |
520 | 502 | /// use std::ops::BitAnd;
|
521 | 503 | ///
|
522 | 504 | /// #[derive(Copy)]
|
@@ -568,8 +550,6 @@ bitand_impl! { bool uint u8 u16 u32 u64 int i8 i16 i32 i64 }
|
568 | 550 | /// calling `bitor`, and therefore, `main` prints `Bitwise Or-ing!`.
|
569 | 551 | ///
|
570 | 552 | /// ```
|
571 |
| -/// #![feature(associated_types)] |
572 |
| -/// |
573 | 553 | /// use std::ops::BitOr;
|
574 | 554 | ///
|
575 | 555 | /// #[derive(Copy)]
|
@@ -621,8 +601,6 @@ bitor_impl! { bool uint u8 u16 u32 u64 int i8 i16 i32 i64 }
|
621 | 601 | /// calling `bitxor`, and therefore, `main` prints `Bitwise Xor-ing!`.
|
622 | 602 | ///
|
623 | 603 | /// ```
|
624 |
| -/// #![feature(associated_types)] |
625 |
| -/// |
626 | 604 | /// use std::ops::BitXor;
|
627 | 605 | ///
|
628 | 606 | /// #[derive(Copy)]
|
@@ -674,8 +652,6 @@ bitxor_impl! { bool uint u8 u16 u32 u64 int i8 i16 i32 i64 }
|
674 | 652 | /// calling `shl`, and therefore, `main` prints `Shifting left!`.
|
675 | 653 | ///
|
676 | 654 | /// ```
|
677 |
| -/// #![feature(associated_types)] |
678 |
| -/// |
679 | 655 | /// use std::ops::Shl;
|
680 | 656 | ///
|
681 | 657 | /// #[derive(Copy)]
|
@@ -745,8 +721,6 @@ shl_impl_all! { u8 u16 u32 u64 usize i8 i16 i32 i64 isize }
|
745 | 721 | /// calling `shr`, and therefore, `main` prints `Shifting right!`.
|
746 | 722 | ///
|
747 | 723 | /// ```
|
748 |
| -/// #![feature(associated_types)] |
749 |
| -/// |
750 | 724 | /// use std::ops::Shr;
|
751 | 725 | ///
|
752 | 726 | /// #[derive(Copy)]
|
@@ -1006,8 +980,6 @@ impl<Idx: fmt::Show> fmt::Show for RangeTo<Idx> {
|
1006 | 980 | /// struct.
|
1007 | 981 | ///
|
1008 | 982 | /// ```
|
1009 |
| -/// #![feature(associated_types)] |
1010 |
| -/// |
1011 | 983 | /// use std::ops::Deref;
|
1012 | 984 | ///
|
1013 | 985 | /// struct DerefExample<T> {
|
@@ -1061,8 +1033,6 @@ impl<'a, T: ?Sized> Deref for &'a mut T {
|
1061 | 1033 | /// struct.
|
1062 | 1034 | ///
|
1063 | 1035 | /// ```
|
1064 |
| -/// #![feature(associated_types)] |
1065 |
| -/// |
1066 | 1036 | /// use std::ops::{Deref, DerefMut};
|
1067 | 1037 | ///
|
1068 | 1038 | /// struct DerefMutExample<T> {
|
|
0 commit comments