Extend the solution to encompass HRTB
This commit is contained in:
parent
be8d9bb98a
commit
8d9bb17204
2 changed files with 54 additions and 4 deletions
|
|
@ -0,0 +1,9 @@
|
|||
fn foo<T>(t: T) -> i32
|
||||
where T : for<'a> Fn(&'a u8) -> i32,
|
||||
T : for<'b> Fn(&'b u8) -> i32,
|
||||
{
|
||||
t(&3)
|
||||
}
|
||||
|
||||
fn main() {
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue