File tree Expand file tree Collapse file tree 2 files changed +5
-3
lines changed Expand file tree Collapse file tree 2 files changed +5
-3
lines changed Original file line number Diff line number Diff line change 2
2
refs/heads/master: 19dfec2aaf746535de1521f68421f9980dbf25de
3
3
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
4
4
refs/heads/snap-stage3: 2f46b763da2c098913884f101b6d71d69af41b49
5
- refs/heads/try: 88bec09e6345d64d334c6dc1ef4947b35c467373
5
+ refs/heads/try: 6cabe2b90226e2262c8c1937b604d9f2c6f14059
6
6
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
7
7
refs/heads/ndm: f3868061cd7988080c30d6d5bf352a5a5fe2460b
8
8
refs/heads/try2: a810c03263670238bccd64cabb12a23a46e3a278
Original file line number Diff line number Diff line change @@ -302,7 +302,7 @@ rejected by the compiler):
302
302
fn example3() -> int {
303
303
let mut x = ~X {f: 3};
304
304
let y = &x.f;
305
- x = ~{f: 4}; // Error reported here.
305
+ x = ~X {f: 4}; // Error reported here.
306
306
*y
307
307
}
308
308
~~~
@@ -369,9 +369,11 @@ box's owner. Consider a program like this:
369
369
~~~
370
370
struct R { g: int }
371
371
struct S { mut f: ~R }
372
- fn example5a(x: @S ... ) -> int {
372
+ fn example5a(x: @S, callback: @fn() ) -> int {
373
373
let y = &x.f.g; // Error reported here.
374
374
...
375
+ callback();
376
+ ...
375
377
# return 0;
376
378
}
377
379
~~~
You can’t perform that action at this time.
0 commit comments