Remove the unboxed closure |:| notation from types and trait references completely.
This commit is contained in:
parent
221edbae38
commit
d0fa4c6239
17 changed files with 29 additions and 348 deletions
|
|
@ -25,7 +25,7 @@ fn call_it<F:FnMut(int)->int>(mut f: F, x: int) -> int {
|
|||
f.call_mut((x,)) + 3
|
||||
}
|
||||
|
||||
fn call_box(f: &mut |&mut: int|->int, x: int) -> int {
|
||||
fn call_box(f: &mut FnMut(int) -> int, x: int) -> int {
|
||||
f.call_mut((x,)) + 3
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue