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