]> 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 ffc5b87c6ea9f6452b775fd130f181487833a74a..241f5d05b7c83c087d8c95d4a7ae15dd6b6cfa32 100644 (file)
@@ -29,3 +29,8 @@ trait 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>;
+}