Register new snapshots
This commit is contained in:
parent
c83afb9719
commit
c3ea3e439f
74 changed files with 194 additions and 208 deletions
|
|
@ -152,7 +152,7 @@ struct Foo {
|
|||
}
|
||||
|
||||
struct FooClosure<'a> {
|
||||
myfunc: 'a |int, uint| -> i32
|
||||
myfunc: |int, uint|: 'a -> i32
|
||||
}
|
||||
|
||||
fn a(a: int, b: uint) -> i32 {
|
||||
|
|
|
|||
|
|
@ -3460,7 +3460,7 @@ fn add(x: int, y: int) -> int {
|
|||
|
||||
let mut x = add(5,7);
|
||||
|
||||
type Binop<'a> = 'a |int,int| -> int;
|
||||
type Binop<'a> = |int,int|: 'a -> int;
|
||||
let bo: Binop = add;
|
||||
x = bo(5,7);
|
||||
~~~~
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue