]> git.lizzy.rs Git - rust.git/blobdiff - tests/target/trait.rs
Merge pull request #681 from rust-lang-nursery/comment-style
[rust.git] / tests / target / trait.rs
index 3e0a7ed692a508866323c3d41eec670c9e6cf977..241f5d05b7c83c087d8c95d4a7ae15dd6b6cfa32 100644 (file)
@@ -25,3 +25,12 @@ pub trait WriteMessage {
 trait Runnable {
     fn handler(self: &Runnable);
 }
+
+trait TraitWithExpr {
+    fn fn_with_expr(x: [i32; 1]);
+}
+
+trait Test {
+    fn read_struct<T, F>(&mut self, s_name: &str, len: usize, f: F) -> Result<T, Self::Error>
+        where F: FnOnce(&mut Self) -> Result<T, Self::Error>;
+}