]> git.lizzy.rs Git - rust.git/blobdiff - src/test/run-pass/default_ty_param_trait_impl_simple.rs
Fix invalid associated type rendering in rustdoc
[rust.git] / src / test / run-pass / default_ty_param_trait_impl_simple.rs
index 00d7ccf43becc45f77d003c80d7a65312077cbdd..067ad524922c0bfa17066c0939457504b321fe1d 100644 (file)
@@ -8,17 +8,17 @@
 // option. This file may not be copied, modified, or distributed
 // except according to those terms.
 
+#![feature(default_type_parameter_fallback)]
+
 // An example from the RFC
 trait Foo { fn takes_foo(&self); }
 trait Bar { }
 
 impl<T:Bar=usize> Foo for Vec<T> {
     fn takes_foo(&self) {}
-} // Impl 1
-
-impl Bar for usize { } // Impl 2
+}
 
-// fn takes_foo<F:Foo>(f: F) { }
+impl Bar for usize {}
 
 fn main() {
     let x = Vec::new(); // x: Vec<$0>