]> git.lizzy.rs Git - rust.git/commitdiff
Remove use of associated_types feature gate from tests.
authorHuon Wilson <dbau.pp+github@gmail.com>
Mon, 5 Jan 2015 06:28:53 +0000 (17:28 +1100)
committerHuon Wilson <dbau.pp+github@gmail.com>
Mon, 5 Jan 2015 09:00:10 +0000 (20:00 +1100)
111 files changed:
src/test/auxiliary/associated-types-cc-lib.rs
src/test/auxiliary/issue-16643.rs
src/test/auxiliary/issue_20389.rs
src/test/auxiliary/overloaded_autoderef_xc.rs
src/test/auxiliary/trait_inheritance_overloading_xc.rs
src/test/bench/shootout-fasta.rs
src/test/bench/shootout-k-nucleotide.rs
src/test/bench/shootout-meteor.rs
src/test/bench/shootout-reverse-complement.rs
src/test/compile-fail/associated-types-ICE-when-projecting-out-of-err.rs
src/test/compile-fail/associated-types-bound-failure.rs
src/test/compile-fail/associated-types-eq-1.rs
src/test/compile-fail/associated-types-eq-2.rs
src/test/compile-fail/associated-types-eq-3.rs
src/test/compile-fail/associated-types-eq-expr-path.rs
src/test/compile-fail/associated-types-eq-hr.rs
src/test/compile-fail/associated-types-for-unimpl-trait.rs
src/test/compile-fail/associated-types-in-ambiguous-context.rs
src/test/compile-fail/associated-types-incomplete-object.rs
src/test/compile-fail/associated-types-issue-20346.rs
src/test/compile-fail/associated-types-no-suitable-bound.rs
src/test/compile-fail/associated-types-no-suitable-supertrait.rs
src/test/compile-fail/associated-types-path-1.rs
src/test/compile-fail/associated-types-path-2.rs
src/test/compile-fail/associated-types-project-from-hrtb-explicit.rs
src/test/compile-fail/associated-types-project-from-hrtb-in-fn-body.rs
src/test/compile-fail/associated-types-project-from-hrtb-in-fn.rs
src/test/compile-fail/associated-types-project-from-hrtb-in-struct.rs
src/test/compile-fail/associated-types-project-from-hrtb-in-trait-method.rs
src/test/compile-fail/associated-types-unconstrained.rs
src/test/compile-fail/associated-types-unsized.rs
src/test/compile-fail/binop-consume-args.rs
src/test/compile-fail/binop-move-semantics.rs
src/test/compile-fail/borrowck-borrow-overloaded-auto-deref-mut.rs
src/test/compile-fail/borrowck-borrow-overloaded-auto-deref.rs
src/test/compile-fail/borrowck-borrow-overloaded-deref-mut.rs
src/test/compile-fail/borrowck-borrow-overloaded-deref.rs
src/test/compile-fail/borrowck-loan-in-overloaded-op.rs
src/test/compile-fail/borrowck-loan-rcvr-overloaded-op.rs
src/test/compile-fail/borrowck-overloaded-index-2.rs
src/test/compile-fail/borrowck-overloaded-index-autoderef.rs
src/test/compile-fail/borrowck-overloaded-index.rs
src/test/compile-fail/dst-index.rs
src/test/compile-fail/infinite-autoderef.rs
src/test/compile-fail/issue-18389.rs
src/test/compile-fail/issue-18566.rs
src/test/compile-fail/issue-18611.rs
src/test/compile-fail/issue-18819.rs
src/test/compile-fail/issue-19883.rs
src/test/compile-fail/issue-20005.rs
src/test/compile-fail/static-reference-to-fn-2.rs
src/test/compile-fail/wrong-mul-method-signature.rs
src/test/run-pass/associated-types-basic.rs
src/test/run-pass/associated-types-binding-in-where-clause.rs
src/test/run-pass/associated-types-bound.rs
src/test/run-pass/associated-types-cc.rs
src/test/run-pass/associated-types-conditional-dispatch.rs
src/test/run-pass/associated-types-constant-type.rs
src/test/run-pass/associated-types-eq-obj.rs
src/test/run-pass/associated-types-impl-redirect.rs
src/test/run-pass/associated-types-in-default-method.rs
src/test/run-pass/associated-types-in-fn.rs
src/test/run-pass/associated-types-in-impl-generics.rs
src/test/run-pass/associated-types-in-inherent-method.rs
src/test/run-pass/associated-types-issue-20371.rs
src/test/run-pass/associated-types-normalize-in-bounds-ufcs.rs
src/test/run-pass/associated-types-normalize-in-bounds.rs
src/test/run-pass/associated-types-projection-bound-in-supertraits.rs
src/test/run-pass/associated-types-qualified-path-with-trait-with-type-parameters.rs
src/test/run-pass/associated-types-resolve-lifetime.rs
src/test/run-pass/associated-types-return.rs
src/test/run-pass/associated-types-simple.rs
src/test/run-pass/associated-types-sugar-path.rs
src/test/run-pass/associated-types-where-clause-impl-ambiguity.rs
src/test/run-pass/dst-deref-mut.rs
src/test/run-pass/dst-deref.rs
src/test/run-pass/dst-index.rs
src/test/run-pass/fixup-deref-mut.rs
src/test/run-pass/issue-13167.rs
src/test/run-pass/issue-13264.rs
src/test/run-pass/issue-14919.rs
src/test/run-pass/issue-15734.rs
src/test/run-pass/issue-16596.rs
src/test/run-pass/issue-16774.rs
src/test/run-pass/issue-17732.rs
src/test/run-pass/issue-19081.rs
src/test/run-pass/issue-19121.rs
src/test/run-pass/issue-19129-1.rs
src/test/run-pass/issue-19129-2.rs
src/test/run-pass/issue-19479.rs
src/test/run-pass/issue-19631.rs
src/test/run-pass/issue-19632.rs
src/test/run-pass/issue-19850.rs
src/test/run-pass/issue-20009.rs
src/test/run-pass/issue-20389.rs
src/test/run-pass/issue-3743.rs
src/test/run-pass/operator-multidispatch.rs
src/test/run-pass/operator-overloading.rs
src/test/run-pass/overloaded-autoderef-count.rs
src/test/run-pass/overloaded-autoderef-indexing.rs
src/test/run-pass/overloaded-autoderef-order.rs
src/test/run-pass/overloaded-autoderef-vtable.rs
src/test/run-pass/overloaded-deref-count.rs
src/test/run-pass/overloaded-index-assoc-list.rs
src/test/run-pass/overloaded-index-autoderef.rs
src/test/run-pass/overloaded-index-in-field.rs
src/test/run-pass/overloaded-index.rs
src/test/run-pass/parse-assoc-type-lt.rs
src/test/run-pass/regions-no-bound-in-argument-cleanup.rs
src/test/run-pass/simd-generics.rs
src/test/run-pass/trait-inheritance-overloading.rs

index 17b2a0751fe297665062595ad17cdfcbf7286aa5..44fbcf2150a4bf9050ad727622351f4806cd10d4 100644 (file)
@@ -12,7 +12,6 @@
 // cross-crate scenario.
 
 #![crate_type="lib"]
-#![feature(associated_types)]
 
 pub trait Bar {
     type T;
index 41572998b58a418ed213fb98e9761f1d629ffdde..c3f7f2d1aa1666ede0d3c29d0e33584c5cbc7f46 100644 (file)
@@ -9,7 +9,6 @@
 // except according to those terms.
 
 #![crate_type = "lib"]
-#![feature(associated_types)]
 
 pub struct TreeBuilder<H>;
 
index 60e3cb13e2e46a88a4d1b0693feec04b212f5db2..7a378b06df9e175ceac52066671a93b94ce8825e 100644 (file)
@@ -8,8 +8,6 @@
 // option. This file may not be copied, modified, or distributed
 // except according to those terms.
 
-#![feature(associated_types)]
-
 pub trait T {
     type C;
 }
index 05960a5b8e1dd6196a51f865972be9c745200433..caa9bbe5736e4adb55d0c7620dfe996b0feef5dc 100644 (file)
@@ -8,8 +8,6 @@
 // option. This file may not be copied, modified, or distributed
 // except according to those terms.
 
-#![feature(associated_types)]
-
 use std::ops::Deref;
 
 struct DerefWithHelper<H, T> {
index 7394373e9229bb61d5b58befd0b4ea96d590dc51..cbd2ac69c789415114f21ea2408fb8eae84d8ac8 100644 (file)
@@ -8,8 +8,6 @@
 // option. This file may not be copied, modified, or distributed
 // except according to those terms.
 
-#![feature(associated_types)]
-
 use std::cmp::PartialEq;
 use std::ops::{Add, Sub, Mul};
 
index 8777fa9689f94778b195373810aacc32b2e320f5..9128930651f25ec6fd77ea6a1a7821ca214ba09b 100644 (file)
@@ -38,7 +38,7 @@
 // ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED
 // OF THE POSSIBILITY OF SUCH DAMAGE.
 
-#![feature(associated_types, slicing_syntax)]
+#![feature(slicing_syntax)]
 
 use std::cmp::min;
 use std::io::{BufferedWriter, File};
index 359f06d0cf5f9eb50b0a9996fd91f11502cb2986..28d7488c9bf8f837f3458d0d2f0d9b0d180a0c58 100644 (file)
@@ -40,7 +40,7 @@
 
 // ignore-android see #10393 #13206
 
-#![feature(associated_types, slicing_syntax)]
+#![feature(slicing_syntax)]
 
 use std::ascii::OwnedAsciiExt;
 use std::iter::repeat;
index 438775d8ba0a405f1686e52ad6e65c7c369e9780..0a0af127765da2e1dea1387b22c3bb6b75a2b610 100644 (file)
@@ -40,8 +40,6 @@
 
 // no-pretty-expanded FIXME #15189
 
-#![feature(associated_types)]
-
 use std::iter::repeat;
 use std::sync::Arc;
 use std::sync::mpsc::channel;
index bbbd7aebd547538d61f875204bc3485f049e405b..77bae87c7dd219e01d674909604b5be9db8c9c68 100644 (file)
@@ -40,7 +40,7 @@
 
 // ignore-android see #10393 #13206
 
-#![feature(associated_types, slicing_syntax, unboxed_closures)]
+#![feature(slicing_syntax, unboxed_closures)]
 
 extern crate libc;
 
index 5743216b6ca69e1ae98e757597f9dc3825a46b75..0abec3e1d12a506d5daa138bf8de5f15a57d5967 100644 (file)
@@ -12,7 +12,7 @@
 // just propagate the error.
 
 #![crate_type = "lib"]
-#![feature(associated_types, default_type_params, lang_items)]
+#![feature(default_type_params, lang_items)]
 #![no_std]
 
 #[lang="sized"]
index 7981fe3182712609fc01df0e8dabbd5b7e3516af..918826bb390cbe8320a658faa63fb01cc84bfc9d 100644 (file)
@@ -10,8 +10,6 @@
 
 // Test equality constraints on associated types in a where clause.
 
-#![feature(associated_types)]
-
 pub trait ToInt {
     fn to_int(&self) -> int;
 }
index e93d9db28cf4b18eb6e59168281a4e88cfe5f7df..58dbb9863254afd1419252f02b58943a571a4be3 100644 (file)
@@ -11,8 +11,6 @@
 // Test equality constraints on associated types. Check that unsupported syntax
 // does not ICE.
 
-#![feature(associated_types)]
-
 pub trait Foo {
     type A;
     fn boo(&self) -> <Self as Foo>::A;
index b89cdd8c0eed7c233ca1efc07385c85fdf382694..e298d05d11dad1baa4e49763b64ed886d4102f98 100644 (file)
@@ -11,8 +11,6 @@
 // Test equality constraints on associated types. Check we get an error when an
 // equality constraint is used in a qualified path.
 
-#![feature(associated_types)]
-
 pub trait Foo {
     type A;
     fn boo(&self) -> <Self as Foo>::A;
index e5974925d7370b6d813962e3cfa8858f6f08c6d6..0f18a84cd1ae317186030e7b9639379d31fe4bd8 100644 (file)
@@ -11,8 +11,6 @@
 // Test equality constraints on associated types. Check we get type errors
 // where we should.
 
-#![feature(associated_types)]
-
 pub trait Foo {
     type A;
     fn boo(&self) -> <Self as Foo>::A;
index 1a96b0ca6812e357b507e1daea4e8ffd69b5f8b8..ef56fdeb051835ce3965e9d062c973811cddf85d 100644 (file)
@@ -10,8 +10,6 @@
 
 // Check that an associated type cannot be bound in an expression path.
 
-#![feature(associated_types)]
-
 trait Foo {
     type A;
     fn bar() -> int;
index aad55745c25dfb9eceeeecff9073a1a860106f89..2532977b1ca24c021f87535c3d93736838d9ea12 100644 (file)
@@ -10,8 +10,6 @@
 
 // Check testing of equality constraints in a higher-ranked context.
 
-#![feature(associated_types)]
-
 pub trait TheTrait<T> {
     type A;
 
index 2c6ee502fca3ed115cb5bc34330825e3b5a18806..9c173515793f44f84c47038fb8a51f0de08e8aa6 100644 (file)
@@ -8,8 +8,6 @@
 // option. This file may not be copied, modified, or distributed
 // except according to those terms.
 
-#![feature(associated_types)]
-
 trait Get {
     type Value;
     fn get(&self) -> <Self as Get>::Value;
@@ -22,4 +20,3 @@ fn uhoh<U:Get>(&self, foo: U, bar: <Self as Get>::Value) {}
 
 fn main() {
 }
-
index fcd3e4d1636468379318c1529e6d177801126726..3999e9cbe753d1d90ab8294ada23d1d1be274f6a 100644 (file)
@@ -8,8 +8,6 @@
 // option. This file may not be copied, modified, or distributed
 // except according to those terms.
 
-#![feature(associated_types)]
-
 trait Get {
     type Value;
     fn get(&self) -> <Self as Get>::Value;
@@ -26,4 +24,3 @@ trait Grab {
 
 fn main() {
 }
-
index 7e4e1315110af5e29281044b22111db0f1fe08d2..371f97e867a2976b9a149cff2917c348d79bc868 100644 (file)
@@ -11,8 +11,6 @@
 // Check that the user gets an errror if they omit a binding from an
 // object type.
 
-#![feature(associated_types)]
-
 pub trait Foo {
     type A;
     type B;
index e4364b12580d3a7476acca07e5954b3be0e2e08d..a00aa8364bde2adeed76ab24a99771fd61a49e2c 100644 (file)
@@ -11,7 +11,6 @@
 // Test that we reliably check the value of the associated type.
 
 #![crate_type = "lib"]
-#![feature(associated_types)]
 #![no_implicit_prelude]
 
 use std::option::Option::{self, None, Some};
index 6b856204091516dd47b31839ae9d46fccad15ed6..98f2355f9be1a40e109ffa72eeb4d7694876c071 100644 (file)
@@ -8,8 +8,6 @@
 // option. This file may not be copied, modified, or distributed
 // except according to those terms.
 
-#![feature(associated_types)]
-
 trait Get {
     type Value;
     fn get(&self) -> <Self as Get>::Value;
@@ -26,4 +24,3 @@ fn uhoh<T>(foo: <T as Get>::Value) {}
 
 fn main() {
 }
-
index 5a4ebeac41eef0f3f5d47165b033a180fbfdf9cd..a3f2850b29464589d86e4c28f38112be3065f0f2 100644 (file)
@@ -8,8 +8,6 @@
 // option. This file may not be copied, modified, or distributed
 // except according to those terms.
 
-#![feature(associated_types)]
-
 // Check that we get an error when you use `<Self as Get>::Value` in
 // the trait definition but `Self` does not, in fact, implement `Get`.
 
index 41f5bc17b561bb9ee378a3405ff3fc6f4c2fcb18..ab061ca4d8da62fcec0bcf48dccc22e5906168bd 100644 (file)
@@ -10,8 +10,6 @@
 
 // Test that we have one and only one associated type per ref.
 
-#![feature(associated_types)]
-
 pub trait Foo {
     type A;
 }
@@ -23,4 +21,3 @@ pub fn f1<T>(a: T, x: T::A) {} //~ERROR associated type `A` not found
 pub fn f2<T: Foo + Bar>(a: T, x: T::A) {} //~ERROR ambiguous associated type `A`
 
 pub fn main() {}
-
index 989214d81da9e508d87a3186f96cbb94c1c6616e..ef85fc22fe7d442808835d106899d4d229ff0fe2 100644 (file)
@@ -10,8 +10,6 @@
 
 // Test type checking of uses of associated types via sugary paths.
 
-#![feature(associated_types)]
-
 pub trait Foo {
     type A;
 }
index 1f0f044a4c0c390797287276d8aa36613bdac1be..c5245840c4285a34404cc83b348801b94640aaeb 100644 (file)
@@ -11,8 +11,6 @@
 // Test you can't use a higher-ranked trait bound inside of a qualified
 // path (just won't parse).
 
-#![feature(associated_types)]
-
 pub trait Foo<T> {
     type A;
 
index 0e13efdebc9558cc64f1436cd1390f71ab5231ea..1f1ab4ca4b6d86d6e8870de4c9eb75492d79238e 100644 (file)
@@ -11,8 +11,6 @@
 // Check projection of an associated type out of a higher-ranked
 // trait-bound in the context of a function body.
 
-#![feature(associated_types)]
-
 pub trait Foo<T> {
     type A;
 
index 0d5c69591423b8605414358a77a133aaa977b001..0920bfab32b97f20ad9267f91d5b8d1acf6a4496 100644 (file)
@@ -11,8 +11,6 @@
 // Check projection of an associated type out of a higher-ranked trait-bound
 // in the context of a function signature.
 
-#![feature(associated_types)]
-
 pub trait Foo<T> {
     type A;
 
index 5016c6448a50e7322eb2117526540e951c46900d..0acb0f4853bc201b5da3d8ac434494cd99a9e841 100644 (file)
@@ -11,8 +11,6 @@
 // Check projection of an associated type out of a higher-ranked trait-bound
 // in the context of a struct definition.
 
-#![feature(associated_types)]
-
 pub trait Foo<T> {
     type A;
 
index a92d4ec04cb20ca6bef96d2f2455f88831e0b6e5..21e92c53058d66b241aac2425cf8a31299571377 100644 (file)
@@ -11,8 +11,6 @@
 // Check projection of an associated type out of a higher-ranked trait-bound
 // in the context of a method definition in a trait.
 
-#![feature(associated_types)]
-
 pub trait Foo<T> {
     type A;
 
index 02e1121880678cdbf70d0308a17f9e53e9a3b068..968634669446a2cf0816fa0c082a64963c998fcd 100644 (file)
@@ -10,8 +10,6 @@
 
 // Check that an associated type cannot be bound in an expression path.
 
-#![feature(associated_types)]
-
 trait Foo {
     type A;
     fn bar() -> int;
index 47ab09d279f62ab773d6bca5051af0ca9c80c307..5ae2f65fb2e47746c70da215771e79b1e9775298 100644 (file)
@@ -8,8 +8,6 @@
 // option. This file may not be copied, modified, or distributed
 // except according to those terms.
 
-#![feature(associated_types)]
-
 trait Get {
     type Sized? Value;
     fn get(&self) -> <Self as Get>::Value;
@@ -21,4 +19,3 @@ fn foo<T:Get>(t: T) {
 
 fn main() {
 }
-
index 930000e5f0c3746f3733440e8d301219305e5a44..2f26059330e48c524205841d77558cfb72fb8e6f 100644 (file)
@@ -10,7 +10,7 @@
 
 // Test that binary operators consume their arguments
 
-#![feature(associated_types, default_type_params)]
+#![feature(default_type_params)]
 
 use std::ops::{Add, Sub, Mul, Div, Rem, BitAnd, BitXor, BitOr, Shl, Shr};
 
index e51ca6a70f28b9739c4414b0bf2037aaafa61740..65e3564d913eb3e41ddd95eb4370f034cbdc367c 100644 (file)
@@ -10,7 +10,7 @@
 
 // Test that move restrictions are enforced on overloaded binary operations
 
-#![feature(associated_types, default_type_params)]
+#![feature(default_type_params)]
 
 use std::ops::Add;
 
index 7cd170f7773e9ced96363f891023624a3e35b265..66bcfc23808354d98635c3c004b9740bedc04ebe 100644 (file)
@@ -11,8 +11,6 @@
 // Test how overloaded deref interacts with borrows when DerefMut
 // is implemented.
 
-#![feature(associated_types)]
-
 use std::ops::{Deref, DerefMut};
 
 struct Own<T> {
index 759467aeda36e53e32a9780cef0f6c938cf3df0e..abab9e57ffe34e7c181b674070c6598859e8a3a5 100644 (file)
@@ -11,8 +11,6 @@
 // Test how overloaded deref interacts with borrows when only
 // Deref and not DerefMut is implemented.
 
-#![feature(associated_types)]
-
 use std::ops::Deref;
 
 struct Rc<T> {
index 74dceab18ea48b2c8d179c7482578d70d7d07383..dda7e4d10474b48838a575d1f33f2a3ed9282550 100644 (file)
@@ -11,8 +11,6 @@
 // Test how overloaded deref interacts with borrows when DerefMut
 // is implemented.
 
-#![feature(associated_types)]
-
 use std::ops::{Deref, DerefMut};
 
 struct Own<T> {
index 635e440c6fe120b1532a509ef1562fcbfee85449..001a5232b127fe05fb8d8c4366071806809d1166 100644 (file)
@@ -11,8 +11,6 @@
 // Test how overloaded deref interacts with borrows when only
 // Deref and not DerefMut is implemented.
 
-#![feature(associated_types)]
-
 use std::ops::Deref;
 
 struct Rc<T> {
index 141dd8905bece30cd99e8db1ecc7726d8e18598c..924d70e9f46c6c880ace78b9d48ec97cb8444516 100644 (file)
@@ -8,8 +8,6 @@
 // option. This file may not be copied, modified, or distributed
 // except according to those terms.
 
-#![feature(associated_types)]
-
 use std::ops::Add;
 
 #[derive(Clone)]
index e0a961e5cc5fcd4ac7f2e4fa29fbc6bd4f1d2679..96782e226c4e29b362d7dcf2d95ea9e0f820437c 100644 (file)
@@ -8,7 +8,7 @@
 // option. This file may not be copied, modified, or distributed
 // except according to those terms.
 
-#![feature(associated_types, default_type_params)]
+#![feature(default_type_params)]
 
 use std::ops::Add;
 
index 87e647d16ddf84861910671b4391c30cb41d4647..53fb935755cf05e66010a12f45d7c1e9d86086f2 100644 (file)
@@ -8,8 +8,6 @@
 // option. This file may not be copied, modified, or distributed
 // except according to those terms.
 
-#![feature(associated_types)]
-
 use std::ops::Index;
 
 struct MyVec<T> {
index e7bd7cdf0b79de2be624f24f04589d85aea334f1..416e67dac0ced8f8e2c1383bc663957c284b5b8f 100644 (file)
@@ -11,8 +11,6 @@
 // Test that we still see borrowck errors of various kinds when using
 // indexing and autoderef in combination.
 
-#![feature(associated_types)]
-
 use std::ops::{Index, IndexMut};
 
 struct Foo {
@@ -95,5 +93,3 @@ fn test9(mut f: Box<Bar>, g: Bar, s: String) {
 
 fn main() {
 }
-
-
index 532f32ce770a6bbe280ee2e051c626c32d9d96ee..80b68dbf519eefb62325a0f1383778e1a4d2cb9c 100644 (file)
@@ -8,8 +8,6 @@
 // option. This file may not be copied, modified, or distributed
 // except according to those terms.
 
-#![feature(associated_types)]
-
 use std::ops::{Index, IndexMut};
 
 struct Foo {
@@ -70,5 +68,3 @@ fn main() {
     s[2] = 20;
     //~^ ERROR cannot assign to immutable dereference (dereference is implicit, due to indexing)
 }
-
-
index 06d20c3361bc96e17c2d2e16383eeac183cc69e9..e297ecaac233e49da769b1e22cde3f875ce57f6d 100644 (file)
@@ -11,8 +11,6 @@
 // Test that overloaded index expressions with DST result types
 // can't be used as rvalues
 
-#![feature(associated_types)]
-
 use std::ops::Index;
 use std::fmt::Show;
 
index ab770c099e125a04e2798f241f4522f1d4d0b519..f0b9e796ae62dd62b3f2b7ce01c17b6fe7fc93f7 100644 (file)
@@ -10,8 +10,6 @@
 
 // error-pattern: reached the recursion limit while auto-dereferencing
 
-#![feature(associated_types)]
-
 use std::ops::Deref;
 
 struct Foo;
index 38ebbc062f048f5d422d418bbdcc20acb699b436..37bb1cb1911e5a9fd3fab55154cf285a4d0cdfcd 100644 (file)
@@ -9,7 +9,6 @@
 // except according to those terms.
 
 #![feature(unboxed_closures)]
-#![feature(associated_types)]
 
 use std::any::Any;
 use std::intrinsics::TypeId;
index 491707a9e3104706411a5e21b13c28a05b62c9a2..0d1a1f16c2c932d34ea64707065193248aac1b05 100644 (file)
@@ -8,8 +8,6 @@
 // option. This file may not be copied, modified, or distributed
 // except according to those terms.
 
-#![feature(associated_types)]
-
 use std::ops::Deref;
 
 struct MyPtr<'a>(&'a mut uint);
index 49eeccb2b0cf177177d45ed3339c040ba5bd4a9c..95782630efc82e622f19cc7c126f8581d7dfa7d9 100644 (file)
@@ -8,8 +8,6 @@
 // option. This file may not be copied, modified, or distributed
 // except according to those terms.
 
-#![feature(associated_types)]
-
 fn add_state(op: <int as HasState>::State) {
 //~^ ERROR the trait `HasState` is not implemented for the type `int`
 }
index 32a51ee065b177daace40ac5b38a3985c46b04a2..3a9de74104364156b4279f01008e421ff32ae11f 100644 (file)
@@ -8,8 +8,6 @@
 // option. This file may not be copied, modified, or distributed
 // except according to those terms.
 
-#![feature(associated_types)]
-
 trait Foo {
     type Item;
 }
index 196a04db18a3886de1b8793573380b960293c4ca..70fe6b9b6a868acac98a548e29fd31dcb6b60a48 100644 (file)
@@ -8,8 +8,6 @@
 // option. This file may not be copied, modified, or distributed
 // except according to those terms.
 
-#![feature(associated_types)]
-
 trait From<Src> {
     type Output;
 
index d9520583ca53bc7e9ec8deb38f2576dbf8eb3546..b52f2b1b13857231b830f69492590d09114311eb 100644 (file)
@@ -8,8 +8,6 @@
 // option. This file may not be copied, modified, or distributed
 // except according to those terms.
 
-#![feature(associated_types)]
-
 trait From<Src> {
     type Result;
 
index 2bdbdb4fde29596fe38d7dc9b86d80128d85e23f..d58e89e7767e813e0c380b0a34bf3d1c96355399 100644 (file)
@@ -8,8 +8,6 @@
 // option. This file may not be copied, modified, or distributed
 // except according to those terms.
 
-#![feature(associated_types)]
-
 struct StateMachineIter<'a> {
     statefn: &'a StateMachineFunc<'a>
 }
@@ -61,4 +59,3 @@ fn main() {
     println!("{}",it.next());
     println!("{}",it.next());
 }
-
index 7aa6ead89d7e072c87de0ba9b2c7d9fd47dd1c48..30609ddc9446a0b357e5797fc6d448a609081205 100644 (file)
@@ -13,7 +13,7 @@
 // (In this case the mul method should take &f64 and not f64)
 // See: #11450
 
-#![feature(associated_types, default_type_params)]
+#![feature(default_type_params)]
 
 use std::ops::Mul;
 
index fcfcce3ff1b78d879d9925ccf327e26907b7fc6c..3314b613201595442e4373c320795b189bc380ad 100644 (file)
@@ -8,8 +8,6 @@
 // option. This file may not be copied, modified, or distributed
 // except according to those terms.
 
-#![feature(associated_types)]
-
 trait Foo {
     type T;
 }
@@ -23,4 +21,3 @@ fn main() {
     let y: int = 44;
     assert_eq!(x * 2, y);
 }
-
index e3bd587742c3102ad89dd73169d2fb8928576485..caf7d31a5fd45c2f8fbf8b051265da9d3da07563 100644 (file)
@@ -10,8 +10,6 @@
 
 // Test equality constraints on associated types in a where clause.
 
-#![feature(associated_types)]
-
 pub trait Foo {
     type A;
     fn boo(&self) -> <Self as Foo>::A;
index db5119132cc3fe1574edbf82b44a0cdc3124c22c..c34a19e1d8242206ad82a45c896fc67f933e7609 100644 (file)
@@ -10,8 +10,6 @@
 
 // Test equality constraints on associated types in a where clause.
 
-#![feature(associated_types)]
-
 pub trait ToInt {
     fn to_int(&self) -> int;
 }
index c0cf917aa41174dc8a07f44ea1013263c9a4f636..58aa351ba9c41c27d45c2cad8596fdea9b52988d 100644 (file)
@@ -13,8 +13,6 @@
 // Test that we are able to reference cross-crate traits that employ
 // associated types.
 
-#![feature(associated_types)]
-
 extern crate "associated-types-cc-lib" as bar;
 
 use bar::Bar;
index 3b53203d218e047bb746e24d8764fd89c0a98e3d..d05275e6ffea7148f5ac9b5a69a520e250fb820a 100644 (file)
@@ -14,7 +14,7 @@
 // `Target=[A]`, then the impl marked with `(*)` is seen to conflict
 // with all the others.
 
-#![feature(associated_types, default_type_params)]
+#![feature(default_type_params)]
 
 use std::ops::Deref;
 
index ea2cf84b757c3b84a867bfcba7476e72a31b02ca..68b49af0d3b696539321500bea230ad9d8e3457e 100644 (file)
@@ -8,8 +8,6 @@
 // option. This file may not be copied, modified, or distributed
 // except according to those terms.
 
-#![feature(associated_types)]
-
 trait SignedUnsigned {
     type Opposite;
     fn convert(self) -> Self::Opposite;
@@ -39,4 +37,3 @@ fn main() {
     let x = get(22);
     assert_eq!(22u, x);
 }
-
index f0343a743cb5025b1fb926e12f1619ff4cd891ee..0ec8a3661906f7aaee7806a151ba4718339eb7da 100644 (file)
@@ -10,8 +10,6 @@
 
 // Test equality constraints on associated types inside of an object type
 
-#![feature(associated_types)]
-
 pub trait Foo {
     type A;
     fn boo(&self) -> <Self as Foo>::A;
index eb6a3111cc15ba3ad5ce397610c1b35d6735d86a..388a2d734473153f9b4c602bd59d99efa6cc51df 100644 (file)
@@ -16,7 +16,7 @@
 
 // ignore-pretty -- FIXME(#17362)
 
-#![feature(associated_types, lang_items, unboxed_closures)]
+#![feature(lang_items, unboxed_closures)]
 #![no_implicit_prelude]
 
 use std::kinds::Sized;
index e01b18a64db22098790ed22f24eb4ebe521898c3..0ae61037154728837200000a2174cbc53e907154 100644 (file)
@@ -8,8 +8,6 @@
 // option. This file may not be copied, modified, or distributed
 // except according to those terms.
 
-#![feature(associated_types)]
-
 trait Get {
     type Value;
     fn get(&self) -> &<Self as Get>::Value;
@@ -35,5 +33,3 @@ fn main() {
     };
     assert_eq!(*s.grab(), 100);
 }
-
-
index 4ed213e85d8787fd484776fd3aa0d8f36cda62ea..4104f520a0c5d714827f33f6cd384c9aedfafa3e 100644 (file)
@@ -8,8 +8,6 @@
 // option. This file may not be copied, modified, or distributed
 // except according to those terms.
 
-#![feature(associated_types)]
-
 trait Get {
     type Value;
     fn get(&self) -> &<Self as Get>::Value;
@@ -36,4 +34,3 @@ fn main() {
     };
     assert_eq!(*grab(&s), 100);
 }
-
index f6aaaf3b3fa15d41512489924fb0bf14ebb25ca0..59f05e1184285c531c284be909093d127822a38b 100644 (file)
@@ -8,8 +8,6 @@
 // option. This file may not be copied, modified, or distributed
 // except according to those terms.
 
-#![feature(associated_types)]
-
 trait Get {
     type Value;
     fn get(&self) -> &<Self as Get>::Value;
@@ -44,4 +42,3 @@ fn main() {
     };
     assert_eq!(*s.grab(), 100);
 }
-
index 341682692460ff05cdccfa91e08f3bd4416473b9..951497709fd69955e6c7408b4f2f38e27bf12a51 100644 (file)
@@ -8,8 +8,6 @@
 // option. This file may not be copied, modified, or distributed
 // except according to those terms.
 
-#![feature(associated_types)]
-
 trait Get {
     type Value;
     fn get(&self) -> &<Self as Get>::Value;
@@ -38,4 +36,3 @@ fn main() {
     };
     assert_eq!(*Struct::grab(&s), 100);
 }
-
index a6fb2b9e2ea5390ba1f70d79b19788bbf02e9609..d35b7331d4dbfa757b68f2d072decf3dc1e0991f 100644 (file)
@@ -11,7 +11,6 @@
 // Test that we are able to have an impl that defines an associated type
 // before the actual trait.
 
-#![feature(associated_types)]
 impl X for f64 { type Y = int; }
 trait X {type Y; }
 fn main() {}
index 0fd477204215e10a6147a7e71372aabfb7c2e1b7..00237e2fb0f0f87790fa8af314572cf1bdebf1bd 100644 (file)
@@ -11,8 +11,6 @@
 // Test that we normalize associated types that appear in bounds; if
 // we didn't, the call to `self.split2()` fails to type check.
 
-#![feature(associated_types)]
-
 struct Splits<'a, T, P>;
 struct SplitsN<I>;
 
index f09c27029d7fa448e90bf77eeb89c87ce2d439c2..dcfdba5e746c38e5a404f7fabdc1b751ba798a44 100644 (file)
@@ -11,8 +11,6 @@
 // Test that we normalize associated types that appear in bounds; if
 // we didn't, the call to `self.split2()` fails to type check.
 
-#![feature(associated_types)]
-
 struct Splits<'a, T, P>;
 struct SplitsN<I>;
 
index 92daee5225d01729edcd8fc88f28e658fa65f47c..24dae20b3e77e976a4b3d67b25e7753802afc901 100644 (file)
@@ -13,8 +13,6 @@
 // this case, the `Result=Self` binding in the supertrait listing of
 // `Int` was being ignored.
 
-#![feature(associated_types)]
-
 trait Not {
     type Result;
 
index 1b4eb2604a82bf4251ccfc5213b6af0c4ef04266..abbde16faefca14ffa4d81a441ad1cf9ba037c82 100644 (file)
@@ -8,8 +8,6 @@
 // option. This file may not be copied, modified, or distributed
 // except according to those terms.
 
-#![feature(associated_types)]
-
 trait Foo<T> {
     type Bar;
     fn get_bar() -> <Self as Foo<T>>::Bar;
index 1be09e1e0680d114330eff766b4ce4af3c616a14..e7a8061a3467aa4f6d8479fa2788829fccce42d4 100644 (file)
@@ -8,8 +8,6 @@
 // option. This file may not be copied, modified, or distributed
 // except according to those terms.
 
-#![feature(associated_types)]
-
 trait Get<T> {
     fn get(&self) -> T;
 }
index 1c2ff4668954620254496632c69f5399cf775d21..b9b6d14f8a071decd2a4edef6644d4cfbcb4622e 100644 (file)
@@ -10,8 +10,6 @@
 
 // Test equality constraints on associated types in a where clause.
 
-#![feature(associated_types)]
-
 pub trait Foo {
     type A;
     fn boo(&self) -> <Self as Foo>::A;
index 82ae0d89b46057930c9137fa10227cdc56158489..9e388dc3d347e7932e2cb7fcdd589dba8c0760a7 100644 (file)
@@ -8,8 +8,6 @@
 // option. This file may not be copied, modified, or distributed
 // except according to those terms.
 
-#![feature(associated_types)]
-
 trait Get {
     type Value;
     fn get(&self) -> &<Self as Get>::Value;
@@ -32,4 +30,3 @@ fn main() {
     };
     assert_eq!(*s.get(), 100);
 }
-
index 28c06f51cebc25d2ba7075a8d5448f9dd896325e..880554b61b2ffa7fb751691b182bd16589dffcf7 100644 (file)
@@ -10,8 +10,6 @@
 
 // Test paths to associated types using the type-parameter-only sugar.
 
-#![feature(associated_types)]
-
 pub trait Foo {
     type A;
     fn boo(&self) -> Self::A;
index 8a1a090e919cc407eab577591cf041cf8357148d..abbe250b6279a17051edf12a87281d7a6d367eb0 100644 (file)
@@ -16,7 +16,7 @@
 
 // ignore-pretty -- FIXME(#17362) pretty prints with `<<` which lexes wrong
 
-#![feature(associated_types, lang_items, unboxed_closures)]
+#![feature(lang_items, unboxed_closures)]
 #![no_implicit_prelude]
 
 use std::kinds::Sized;
index 0e0ed1f436c9a019829452f680d963d00629e484..0a12df53de2327013b9e5f7d41c9fb2794a0edbd 100644 (file)
@@ -10,8 +10,6 @@
 
 // Test that a custom deref with a fat pointer return type does not ICE
 
-#![feature(associated_types)]
-
 use std::ops::{Deref, DerefMut};
 
 pub struct Arr {
index a39670a27b9678e373f63b3c554d175f6e85f800..8ef8f1a868d51650f976fbdd5a8e1df479bce72e 100644 (file)
@@ -10,8 +10,6 @@
 
 // Test that a custom deref with a fat pointer return type does not ICE
 
-#![feature(associated_types)]
-
 use std::ops::Deref;
 
 pub struct Arr {
index 6a69bfc248f16ec5794a31073657ebb1487f326c..d1823359af1351c438d6fd425c7752aafdf13316 100644 (file)
@@ -11,8 +11,6 @@
 // Test that overloaded index expressions with DST result types
 // work and don't ICE.
 
-#![feature(associated_types)]
-
 use std::ops::Index;
 use std::fmt::Show;
 
index 8fb3893e5decfa8b051eb2848a562231a7cdd29c..a673a67089a3a2289225b0572a44b05ea52cb3cd 100644 (file)
@@ -8,8 +8,6 @@
 // option. This file may not be copied, modified, or distributed
 // except according to those terms.
 
-#![feature(associated_types)]
-
 use std::ops::{Deref, DerefMut};
 
 // Generic unique/owned smaht pointer.
@@ -55,4 +53,3 @@ fn test2(mut x: Own<Own<Own<Point>>>) {
 }
 
 fn main() {}
-
index ee556ce2c84595bad3f81337035e1fa0effcdfd6..21b54ba0e793b2807261ac09ac89a8c7694fea8e 100644 (file)
@@ -8,8 +8,6 @@
 // option. This file may not be copied, modified, or distributed
 // except according to those terms.
 
-#![feature(associated_types)]
-
 use std::slice;
 
 pub struct PhfMapEntries<'a, T: 'a> {
index 00b508ab92c30e1a4acc194e0621e25f726342a1..3c76a827fb2958e546f145bd2e865bc489602b7e 100644 (file)
@@ -8,8 +8,6 @@
 // option. This file may not be copied, modified, or distributed
 // except according to those terms.
 
-#![feature(associated_types)]
-
 use std::ops::Deref;
 
 struct Root {
index d66bbe9187a289a126bd3165d49af7c24d5ff508..2e8bfc52832a787fd5ab7d50b8baf0ad3e5b0098 100644 (file)
@@ -8,8 +8,6 @@
 // option. This file may not be copied, modified, or distributed
 // except according to those terms.
 
-#![feature(associated_types)]
-
 trait Matcher {
     fn next_match(&mut self) -> Option<(uint, uint)>;
 }
index f261098f5381137e684f3faa8ca21af40a4b08bb..e404f5fa11874e71fea79a36064e9fbd0308ed6b 100644 (file)
@@ -11,7 +11,7 @@
 // If `Index` used an associated type for its output, this test would
 // work more smoothly.
 
-#![feature(associated_types, old_orphan_check)]
+#![feature(old_orphan_check)]
 
 use std::ops::Index;
 
index 7bc6d989fa75cd5ce680c21c8061f6ff4cd80ad6..e01de3a3262edefbe1f725de31b0c2839ee95f18 100644 (file)
@@ -8,8 +8,6 @@
 // option. This file may not be copied, modified, or distributed
 // except according to those terms.
 
-#![feature(associated_types)]
-
 trait MatrixRow {}
 
 struct Mat;
index 45cfabcd872ec653d176c00f009416f5b08372b8..6ef4f868d215094faf76c687bd6be2ec5949d4d2 100644 (file)
@@ -8,7 +8,7 @@
 // option. This file may not be copied, modified, or distributed
 // except according to those terms.
 
-#![feature(associated_types, unboxed_closures)]
+#![feature(unboxed_closures)]
 
 use std::ops::{Deref, DerefMut};
 
index 45d3b53132dbf52d4f4c920a2356061ef5614de5..b4bd55da597578a8b2ca860b3eba0137406b7489 100644 (file)
@@ -8,7 +8,6 @@
 // option. This file may not be copied, modified, or distributed
 // except according to those terms.
 
-#![feature(associated_types)]
 trait Person {
     type string;
 }
index 57724ba91b02f317e9a3e05ef067d7596f4143be..83ba322ba30134d0580affe0d79308742ef92c20 100644 (file)
@@ -10,8 +10,6 @@
 
 // ignore-pretty -- FIXME(#17362) pretty prints as `Hash<<Self as Hasher...` which fails to parse
 
-#![feature(associated_types)]
-
 pub trait Hasher {
     type State;
 
index 79afb856be26fce01c2f50d15ea59f236e296157..d95f74ef2a2ba8217c4b5ee48e5b5253240444b5 100644 (file)
@@ -11,8 +11,6 @@
 // Test that a partially specified trait object with unspecified associated
 // type does not ICE.
 
-#![feature(associated_types)]
-
 trait Foo {
     type A;
 }
index eecc073b0478232c859533166238ebd71c3749f3..3436871b4d1fef7f16331e5b8041ef09e454faec 100644 (file)
@@ -8,8 +8,6 @@
 // option. This file may not be copied, modified, or distributed
 // except according to those terms.
 
-#![feature(associated_types)]
-
 trait Trait<Input> {
     type Output;
 
index aeaf5e3764459466139e5fc488a35f04bcb1cd5b..d6b3a1908b82d6cb78b2619126ac7e56191199ef 100644 (file)
@@ -8,8 +8,6 @@
 // option. This file may not be copied, modified, or distributed
 // except according to those terms.
 
-#![feature(associated_types)]
-
 trait Trait<Input> {
     type Output;
 
index b3354530a0c3889cd0ffd61247119815fba1cb08..91bc645b2d486a4a2bce680b492d399af05e29ab 100644 (file)
@@ -8,7 +8,6 @@
 // option. This file may not be copied, modified, or distributed
 // except according to those terms.
 
-#![feature(associated_types)]
 trait Base {}
 trait AssocA {
     type X: Base;
index d036bab99f8801b56c2b2365077b8c21692625d9..43116f63641ded4b5e868cce3731a7fc33e0a4a3 100644 (file)
@@ -8,8 +8,6 @@
 // option. This file may not be copied, modified, or distributed
 // except according to those terms.
 
-#![feature(associated_types)]
-
 trait PoolManager {
     type C;
 }
index 9bc74e5017305d8ce7544a7a9898dc5c86cb108a..01a073a6889aedf28a7fee91eaa3e1f09d4ef3a2 100644 (file)
@@ -8,8 +8,6 @@
 // option. This file may not be copied, modified, or distributed
 // except according to those terms.
 
-#![feature(associated_types)]
-
 trait PoolManager {
     type C;
 }
index cd56fe186892437db61ef0f8aaa40013dcfb3fc3..a9ce6c7a9eb48bc7f399de8ecd60d20aae7ee8d8 100644 (file)
@@ -11,8 +11,6 @@
 // Test that `<Type as Trait>::Output` and `Self::Output` are accepted as type annotations in let
 // bindings
 
-#![feature(associated_types)]
-
 trait Int {
     fn one() -> Self;
     fn leading_zeros(self) -> uint;
index 535538793d1cf5177baef0be835a8e2e84e6df52..374460487d8f211dead321386806720688fe59ab 100644 (file)
@@ -10,8 +10,6 @@
 
 // Check that associated types are `Sized`
 
-#![feature(associated_types)]
-
 trait Trait {
     type Output;
 
index 0ef14149c94301ccf6720a630c9fc7116b33bd65..877cec48b5dc77c54e72542dd48e4f01df9ec246 100644 (file)
@@ -10,7 +10,6 @@
 
 // aux-build:issue_20389.rs
 
-#![feature(associated_types)]
 extern crate issue_20389;
 
 struct Foo;
index 741f168482da2b11fd589af018de961b5a4d2e2a..8868b6905ad0761bb63c779c258ecbf7ea04f1a7 100644 (file)
@@ -10,7 +10,7 @@
 
 // If `Mul` used an associated type for its output, this test would
 // work more smoothly.
-#![feature(associated_types, default_type_params, old_orphan_check)]
+#![feature(default_type_params, old_orphan_check)]
 
 use std::ops::Mul;
 
index 5999840091967a27f825d80ccf825efdb02329ca..7e1a8d8d7017f767c26378926949c08dbd5d938c 100644 (file)
@@ -11,7 +11,7 @@
 // Test that we can overload the `+` operator for points so that two
 // points can be added, and a point can be added to an integer.
 
-#![feature(associated_types, default_type_params)]
+#![feature(default_type_params)]
 
 use std::ops;
 
index 41e7586f1e3db33fbe45341dea110152dbb7ccbd..c20b7336deb325e3a2f27240d7cbc30f02951b4e 100644 (file)
@@ -8,8 +8,6 @@
 // option. This file may not be copied, modified, or distributed
 // except according to those terms.
 
-#![feature(associated_types)]
-
 use std::cmp;
 use std::ops;
 
index e9eb924d4493dc0817022e33607873f2bc7ed902..f0646853b6be8824223ea0c3a551ff736992d2dc 100644 (file)
@@ -8,8 +8,6 @@
 // option. This file may not be copied, modified, or distributed
 // except according to those terms.
 
-#![feature(associated_types)]
-
 use std::cell::Cell;
 use std::ops::{Deref, DerefMut};
 
index 6d8d09b321ee540b0c3bc72ea559983ae104be47..de37173810f044d0d4cb1dd1946d29d8a305a98e 100644 (file)
@@ -8,8 +8,6 @@
 // option. This file may not be copied, modified, or distributed
 // except according to those terms.
 
-#![feature(associated_types)]
-
 use std::ops::Deref;
 
 struct DerefArray<'a, T:'a> {
index cafb665fc370d1e5a072d9592ea3ae8ce1a5acd9..c34aed42c970fe5e4120e40a86910e222b700b00 100644 (file)
@@ -8,8 +8,6 @@
 // option. This file may not be copied, modified, or distributed
 // except according to those terms.
 
-#![feature(associated_types)]
-
 use std::rc::Rc;
 use std::ops::Deref;
 
index 23efba157495c4a11dc3cc83c55b0f134cbca178..be2b309b8217ffa78f8931ceff6925ea25c03b4b 100644 (file)
@@ -8,8 +8,6 @@
 // option. This file may not be copied, modified, or distributed
 // except according to those terms.
 
-#![feature(associated_types)]
-
 use std::ops::Deref;
 
 struct DerefWithHelper<H, T> {
index b6fb38d5cc2cfd0520c55b327fc3c07f0cfe9765..5cd76879798cb77e14f96f658377269f21c84915 100644 (file)
@@ -8,8 +8,6 @@
 // option. This file may not be copied, modified, or distributed
 // except according to those terms.
 
-#![feature(associated_types)]
-
 use std::cell::Cell;
 use std::ops::{Deref, DerefMut};
 use std::vec::Vec;
index 77bb981cfd9b9a3f0fe06d389a9402c4cd4a1197..aac0b5e06d004fde8c98838ea36752d4425d4155 100644 (file)
@@ -11,8 +11,6 @@
 // Test overloading of the `[]` operator.  In particular test that it
 // takes its argument *by reference*.
 
-#![feature(associated_types)]
-
 use std::ops::Index;
 
 struct AssociationList<K,V> {
index d141234287d13e8e4452485329b144d22647b29a..bc67c0afc7b520d5f6e2b87d28f9bfad4ec865d3 100644 (file)
@@ -10,8 +10,6 @@
 
 // Test overloaded indexing combined with autoderef.
 
-#![feature(associated_types)]
-
 use std::ops::{Index, IndexMut};
 
 struct Foo {
@@ -84,4 +82,3 @@ fn main() {
     assert_eq!(f[1].get(), 5);
     assert_eq!(f[1].get_from_ref(), 5);
 }
-
index 9c6afc0912d0630a471b30bcfb782c30f08fedd9..487fb93c9fee8f3a09135d7503989ade445b6158 100644 (file)
@@ -11,8 +11,6 @@
 // Test using overloaded indexing when the "map" is stored in a
 // field. This caused problems at some point.
 
-#![feature(associated_types)]
-
 use std::ops::Index;
 
 struct Foo {
@@ -55,4 +53,3 @@ fn main() {
     } };
     assert_eq!(f.foo[1].get(), 2);
 }
-
index fe09b47cf0a789bbb707b2c16d0baf15be8e6ecc..0afdb24a81cc0dbf64dd86b437faeb4af54fa4bd 100644 (file)
@@ -8,8 +8,6 @@
 // option. This file may not be copied, modified, or distributed
 // except according to those terms.
 
-#![feature(associated_types)]
-
 use std::ops::{Index, IndexMut};
 
 struct Foo {
@@ -75,4 +73,3 @@ fn main() {
     assert_eq!(f[1].get(), 5);
     assert_eq!(f[1].get_from_ref(), 5);
 }
-
index 8a68711a769fc2e5a5ab1b3e2a13a1b65c669946..5649c4c784dafdab7a19cb563ab3dbe76e10a544 100644 (file)
@@ -8,8 +8,6 @@
 // option. This file may not be copied, modified, or distributed
 // except according to those terms.
 
-#![feature(associated_types)]
-
 trait Foo {
     type T;
     fn foo() -> Box<<Self as Foo>::T>;
index d52c1c0b12c536b0e89b972bdec07c9ff3cda00e..d3464f01203ac5f3adb5cb24587be0eb7ff622aa 100644 (file)
@@ -8,7 +8,7 @@
 // option. This file may not be copied, modified, or distributed
 // except according to those terms.
 
-#![feature(associated_types, unsafe_destructor)]
+#![feature(unsafe_destructor)]
 
 pub struct Foo<T>;
 
index ceb6b790426812b150d8538264946376991a6e5d..e89d5c9922dfafce12ab7e7c2753bf1a071462d6 100644 (file)
@@ -9,7 +9,7 @@
 // except according to those terms.
 
 
-#![feature(associated_types, simd)]
+#![feature(simd)]
 
 use std::ops;
 
index 3e8db61b94044badc065d4313a9a3e8586bca117..43494458518cd9205e2ecaac2d195fe3882d41b8 100644 (file)
@@ -8,8 +8,6 @@
 // option. This file may not be copied, modified, or distributed
 // except according to those terms.
 
-#![feature(associated_types)]
-
 use std::cmp::PartialEq;
 use std::ops::{Add, Sub, Mul};