Add regression test for overlong trait methods
This commit is contained in:
parent
9734bd05af
commit
ea6ce22a16
2 changed files with 9 additions and 0 deletions
|
@ -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>;
|
||||
}
|
||||
|
|
|
@ -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>;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue