1
Fork 0

Add regression test for overlong trait methods

This commit is contained in:
Marcus Klaas 2015-12-02 21:08:09 +01:00
parent 9734bd05af
commit ea6ce22a16
2 changed files with 9 additions and 0 deletions

View file

@ -31,3 +31,7 @@ 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>;
}

View 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>;
}