File tree Expand file tree Collapse file tree 5 files changed +6
-6
lines changed
branches/auto/src/test/pretty Expand file tree Collapse file tree 5 files changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -10,7 +10,7 @@ refs/tags/release-0.3: b5f0d0f648d9a6153664837026ba1be43d3e2503
10
10
refs/tags/release-0.3.1: 495bae036dfe5ec6ceafd3312b4dca48741e845b
11
11
refs/tags/release-0.4: e828ea2080499553b97dfe33b3f4d472b4562ad7
12
12
refs/tags/release-0.5: 7e3bcfbf21278251ee936ad53e92e9b719702d73
13
- refs/heads/auto: d6a948e8f40b1d32d4760e0dfdc0c86df654cae6
13
+ refs/heads/auto: 1bbeb375821fe197342f1e22ab53b796bb0f0c70
14
14
refs/heads/servo: af82457af293e2a842ba6b7759b70288da276167
15
15
refs/tags/release-0.6: b4ebcfa1812664df5e142f0134a5faea3918544c
16
16
refs/tags/0.1: b19db808c2793fe2976759b85a355c3ad8c8b336
Original file line number Diff line number Diff line change 15
15
16
16
fn call_it ( f : Box < FnMut ( String ) -> String > ) { }
17
17
18
- fn call_this ( f: | & str| : Send ) { }
18
+ fn call_this < F > ( f : F ) where F : Fn ( & str ) + Send { }
19
19
20
- fn call_that( f: <' a >| & ' a int , & ' a int | -> int ) { }
20
+ fn call_that < F > ( f : F ) where F : for < ' a > Fn ( & ' a int , & ' a int ) -> int { }
21
21
22
22
fn call_extern ( f : fn ( ) -> int ) { }
23
23
Original file line number Diff line number Diff line change 14
14
// preserved. They are needed to disambiguate `{return n+1}; - 0` from
15
15
// `({return n+1}-0)`.
16
16
17
- fn id ( f: || -> int) -> int { f ( ) }
17
+ fn id < F > ( f : F ) -> int where F : Fn ( ) -> int { f ( ) }
18
18
19
19
fn wsucc ( _n : int ) -> int { id ( || { 1 } ) - 0 }
20
20
fn main ( ) { }
Original file line number Diff line number Diff line change 10
10
11
11
// pp-exact
12
12
13
- fn f ( f: | int| ) { f ( 10 ) }
13
+ fn f < F > ( f : F ) where F : Fn ( int ) { f ( 10 ) }
14
14
15
15
fn main ( ) { f ( |i| { assert ! ( i == 10 ) } ) }
Original file line number Diff line number Diff line change 11
11
// pp-exact
12
12
13
13
fn from_foreign_fn ( _x : fn ( ) ) { }
14
- fn from_stack_closure ( _x: || ) { }
14
+ fn from_stack_closure < F > ( _x : F ) where F : Fn ( ) { }
15
15
fn main ( ) { }
You can’t perform that action at this time.
0 commit comments