]> git.lizzy.rs Git - rust.git/blobdiff - tests/source/trait.rs
Update tests
[rust.git] / tests / source / trait.rs
index faac57179c202560d2807a6beae527ac8aa86f1a..7ed858a9ca6c9123216e039c225f978b2f27b55f 100644 (file)
@@ -38,7 +38,7 @@ trait Test {
 
 trait T<> {}
 
-trait Foo { type Bar: Baz;}
+trait Foo { type Bar: Baz; type Inner: Foo   = Box< Foo >; }
 
 trait ConstCheck<T>:Foo   where   T: Baz { 
         const   J:   i32;
@@ -53,3 +53,7 @@ trait Ttttttttttttttttttttttttttttttttttttttttttttttttttttttttttt<T> where T: Fo
 
 trait WhereList<T, J> where T: Foo, J: Bar {}
 
+trait X /* comment */ {}
+trait Y // comment
+{
+}